Class: Dapp::Dimg::Builder::Chef::Berksfile::Builder
- Inherits:
-
Object
- Object
- Dapp::Dimg::Builder::Chef::Berksfile::Builder
- Defined in:
- lib/dapp/dimg/builder/chef/berksfile.rb
Overview
<< self
Direct Known Subclasses
Instance Method Summary collapse
- #cookbook(name, *_args, path: nil, **_kwargs) ⇒ Object
-
#initialize(berksfile) ⇒ Builder
constructor
A new instance of Builder.
-
#method_missing(*_a, &_blk) ⇒ Object
rubocop:disable Style/MethodMissing.
Constructor Details
#initialize(berksfile) ⇒ Builder
Returns a new instance of Builder.
64 65 66 |
# File 'lib/dapp/dimg/builder/chef/berksfile.rb', line 64 def initialize(berksfile) @berksfile = berksfile end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*_a, &_blk) ⇒ Object
rubocop:disable Style/MethodMissing
73 74 |
# File 'lib/dapp/dimg/builder/chef/berksfile.rb', line 73 def method_missing(*_a, &_blk) end |
Instance Method Details
#cookbook(name, *_args, path: nil, **_kwargs) ⇒ Object
68 69 70 |
# File 'lib/dapp/dimg/builder/chef/berksfile.rb', line 68 def cookbook(name, *_args, path: nil, **_kwargs) @berksfile.add_local_cookbook_path(name, path) if path end |