Sha256: 6d146e555e7d64114f6321902e34a07a28b0242d397dc8902a8c493c9c523cb6
Contents?: true
Size: 1.29 KB
Versions: 5
Compression:
Stored size: 1.29 KB
Contents
# # Copyright 2014 Chef Software, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # require "fileutils" module Omnibus class Compressor::Base < Packager::Base # The {Project} instance that we are compressing attr_reader :project # The {Packager::Base} instance that produced the compressed file attr_reader :packager # # Create a new compressor object from the given packager. # # @param [Project] project # 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 end end
Version data entries
5 entries across 5 versions & 1 rubygems