Sha256: b2701e8a04564f62591d0c60a6d3e3a17d30a4f98d20c3ce68dfa36832b47f03

Contents?: true

Size: 552 Bytes

Versions: 3

Compression:

Stored size: 552 Bytes

Contents

# Encoding: utf-8
require 'packer/postprocessor'
require 'packer/dataobject'

module Packer
  class PostProcessor < Packer::DataObject
    class Compress < PostProcessor
      def initialize
        super()
        self.data['type'] = COMPRESS
      end

      def compression_level(level)
        self.__add_integer('compression_level', level)
      end

      def keep_input_artifact(bool)
        self.__add_boolean('keep_input_artifact', bool)
      end

      def output(file)
        self.__add_string('output', file)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
packer-config-1.6.5 lib/packer/postprocessors/compress.rb
packer-config-1.6.4 lib/packer/postprocessors/compress.rb
packer-config-1.6.3 lib/packer/postprocessors/compress.rb