Class: Vendorificator::Hooks::ChefCookbookDependencies::FakeMetadata

Inherits:
Object
  • Object
show all
Defined in:
lib/vendorificator/hooks/chef_cookbook.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFakeMetadata

Returns a new instance of FakeMetadata.



5
# File 'lib/vendorificator/hooks/chef_cookbook.rb', line 5

def initialize ; @dependencies = [] ; end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



8
# File 'lib/vendorificator/hooks/chef_cookbook.rb', line 8

def method_missing(method, *args) ; end

Instance Attribute Details

#dependenciesObject (readonly)

Returns the value of attribute dependencies.



4
5
6
# File 'lib/vendorificator/hooks/chef_cookbook.rb', line 4

def dependencies
  @dependencies
end

Instance Method Details

#depends(*args) ⇒ Object



7
# File 'lib/vendorificator/hooks/chef_cookbook.rb', line 7

def depends(*args) ; @dependencies << args ; end

#from_file(filename) ⇒ Object



6
# File 'lib/vendorificator/hooks/chef_cookbook.rb', line 6

def from_file(filename) ; self.instance_eval(IO.read(filename), filename, 1) ; end