class Omnibus::Compressor::Base

Attributes

packager[R]

The {Packager::Base} instance that produced the compressed file

project[R]

The {Project} instance that we are compressing

Public Class Methods

new(project) click to toggle source

Create a new compressor object from the given packager.

@param [Project] project

# File lib/omnibus/compressors/base.rb, line 32
def initialize(project)
  @project = project

  # There can now be multiple packagers per platform
  # but windows is the only platform that uses multiple
  # packagers and it does not use a compressor. So for now,
  # we ignore this multi packaging reality in compressors
  @packager = project.packagers_for_system[0]
end