Class: Vendorificator::Hooks::ChefCookbookDependencies::FakeMetadata
- Inherits:
-
Object
- Object
- Vendorificator::Hooks::ChefCookbookDependencies::FakeMetadata
- Defined in:
- lib/vendorificator/hooks/chef_cookbook.rb
Instance Attribute Summary collapse
-
#dependencies ⇒ Object
readonly
Returns the value of attribute dependencies.
Instance Method Summary collapse
- #depends(*args) ⇒ Object
- #from_file(filename) ⇒ Object
-
#initialize ⇒ FakeMetadata
constructor
A new instance of FakeMetadata.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize ⇒ FakeMetadata
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
#dependencies ⇒ Object (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 |