Class: Dapp::Dimg::Builder::Chef::Berksfile::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/dapp/dimg/builder/chef/berksfile.rb

Overview

<< self

Direct Known Subclasses

FromConfBuilder, FromFileBuilder

Instance Method Summary collapse

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