Class: Dapp::Dimg::Builder::Chef::CookbookMetadata::FromFileBuilder
- Inherits:
-
Builder
- Object
- Builder
- Dapp::Dimg::Builder::Chef::CookbookMetadata::FromFileBuilder
- Defined in:
- lib/dapp/dimg/builder/chef/cookbook_metadata.rb
Overview
Builder
Instance Method Summary collapse
- #dump ⇒ Object
-
#initialize(metadata, metadata_file_path) ⇒ FromFileBuilder
constructor
A new instance of FromFileBuilder.
Methods inherited from Builder
#depends, #method_missing, #name, #version
Constructor Details
#initialize(metadata, metadata_file_path) ⇒ FromFileBuilder
Returns a new instance of FromFileBuilder.
70 71 72 73 74 75 76 |
# File 'lib/dapp/dimg/builder/chef/cookbook_metadata.rb', line 70 def initialize(, ) super() @metadata_file_path = instance_eval(@metadata_file_path.read, @metadata_file_path.to_s) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Dapp::Dimg::Builder::Chef::CookbookMetadata::Builder
Instance Method Details
#dump ⇒ Object
78 79 80 |
# File 'lib/dapp/dimg/builder/chef/cookbook_metadata.rb', line 78 def dump @metadata_file_path.read end |