class Dapp::Dimg::Builder::Chef::CookbookMetadata
Attributes
builder[RW]
name[RW]
version[RW]
Public Class Methods
from_conf(name:, version:, cookbooks:)
click to toggle source
# File lib/dapp/dimg/builder/chef/cookbook_metadata.rb, line 23 def from_conf(name:, version:, cookbooks:) new.tap do |metadata| metadata.builder = FromConfBuilder.new(metadata, name, version, cookbooks) end end
from_file(metadata_file_path:)
click to toggle source
# File lib/dapp/dimg/builder/chef/cookbook_metadata.rb, line 17 def from_file(metadata_file_path:) new.tap do |metadata| metadata.builder = FromFileBuilder.new(metadata, metadata_file_path) end end
Protected Class Methods
new(*args, &blk)
click to toggle source
Calls superclass method
# File lib/dapp/dimg/builder/chef/cookbook_metadata.rb, line 31 def new(*args, &blk) super(*args, &blk) end
Public Instance Methods
depends()
click to toggle source
# File lib/dapp/dimg/builder/chef/cookbook_metadata.rb, line 8 def depends @depends ||= {} end
dump()
click to toggle source
# File lib/dapp/dimg/builder/chef/cookbook_metadata.rb, line 12 def dump builder.send(:dump) # "friend class" end