Class: Simpacker::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/simpacker/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(manifest_path:, cache_manifest: true) ⇒ Configuration

Returns a new instance of Configuration.



5
6
7
8
# File 'lib/simpacker/configuration.rb', line 5

def initialize(manifest_path:, cache_manifest: true)
  @manifest_path = manifest_path
  @cache_manifest = cache_manifest
end

Instance Attribute Details

#cache_manifestObject

Returns the value of attribute cache_manifest.



3
4
5
# File 'lib/simpacker/configuration.rb', line 3

def cache_manifest
  @cache_manifest
end

#manifest_pathObject

Returns the value of attribute manifest_path.



3
4
5
# File 'lib/simpacker/configuration.rb', line 3

def manifest_path
  @manifest_path
end

Instance Method Details

#cache_manifest?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/simpacker/configuration.rb', line 10

def cache_manifest?
  !!cache_manifest
end