Class: Dapp::Builder::Chef
- Defined in:
- lib/dapp/builder/chef.rb,
lib/dapp/builder/chef/berksfile.rb,
lib/dapp/builder/chef/cookbook_metadata.rb
Overview
Chef
Defined Under Namespace
Classes: Berksfile, CookbookMetadata
Constant Summary collapse
- LOCAL_COOKBOOK_CHECKSUM_PATTERNS =
%w( attributes/**/* recipes/**/* files/**/* templates/**/* ).freeze
- DEFAULT_CHEFDK_IMAGE =
TODO: config, DSL, DEFAULT_CHEFDK_IMAGE
'dappdeps/chefdk:0.17.3-1'.freeze
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#infra_install, #infra_install_checksum, #infra_setup, #infra_setup_checksum, #initialize, #install, #install_checksum, #setup, #setup_checksum
Constructor Details
This class inherits a constructor from Dapp::Builder::Base
Instance Method Details
#chef_cookbooks(image) ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/dapp/builder/chef.rb', line 35 def chef_cookbooks(image) image.add_volume "#{cookbooks_vendor_path}:#{application.container_dapp_path('chef_vendored_cookbooks')}" image.add_commands( 'mkdir -p /usr/share/dapp/chef_repo', ["cp -a #{application.container_dapp_path('chef_vendored_cookbooks')} ", '/usr/share/dapp/chef_repo/cookbooks'].join ) end |
#chef_cookbooks_checksum ⇒ Object
31 32 33 |
# File 'lib/dapp/builder/chef.rb', line 31 def chef_cookbooks_checksum stage_cookbooks_checksum(:chef_cookbooks) end |