Class: CfScript::Manifest

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/cf_script/manifest.rb

Constant Summary collapse

FILENAME =
'manifest.yml'

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils

symbolize, symbolize_keys

Constructor Details

#initialize(filename = FILENAME) ⇒ Manifest

Returns a new instance of Manifest.



13
14
15
16
17
# File 'lib/cf_script/manifest.rb', line 13

def initialize(filename = FILENAME)
  @filename = filename

  @applications = load_file
end

Instance Attribute Details

#applicationsObject (readonly)

Returns the value of attribute applications.



7
8
9
# File 'lib/cf_script/manifest.rb', line 7

def applications
  @applications
end

#filenameObject (readonly)

Returns the value of attribute filename.



6
7
8
# File 'lib/cf_script/manifest.rb', line 6

def filename
  @filename
end

Instance Method Details

#eachObject



19
20
21
22
23
# File 'lib/cf_script/manifest.rb', line 19

def each
  applications.each do |app|
    yield app
  end
end