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

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

Overview

FromConfBuilder

Instance Method Summary collapse

Methods inherited from Builder

#cookbook, #method_missing

Constructor Details

#initialize(berksfile, berksfile_file_path) ⇒ FromFileBuilder

Returns a new instance of FromFileBuilder.



107
108
109
110
111
112
113
# File 'lib/dapp/dimg/builder/chef/berksfile.rb', line 107

def initialize(berksfile, berksfile_file_path)
  super(berksfile)

  @berksfile_file_path = berksfile_file_path

  instance_eval(@berksfile_file_path.read, @berksfile_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::Berksfile::Builder

Instance Method Details

#dumpObject



115
116
117
# File 'lib/dapp/dimg/builder/chef/berksfile.rb', line 115

def dump
  @berksfile_file_path.read
end