Class: ImageBuilder::PostProcessors::Compress

Inherits:
Base
  • Object
show all
Defined in:
lib/image_builder/post_processors/compress.rb

Overview

Generic class doc comment

Constant Summary

Constants included from ImageBuilder

VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCompress

Returns a new instance of Compress.



10
11
12
# File 'lib/image_builder/post_processors/compress.rb', line 10

def initialize
  @type = 'compress'
end

Instance Attribute Details

#outputObject

Returns the value of attribute output.



7
8
9
# File 'lib/image_builder/post_processors/compress.rb', line 7

def output
  @output
end

#typeObject (readonly)

Returns the value of attribute type.



8
9
10
# File 'lib/image_builder/post_processors/compress.rb', line 8

def type
  @type
end

Instance Method Details

#packer_hashObject



14
15
16
17
18
19
20
21
# File 'lib/image_builder/post_processors/compress.rb', line 14

def packer_hash
  hash = {}

  attr_to_hash(hash, :type, true)
  attr_to_hash(hash, :output, true)

  hash
end