Class: ImageBuilder::Provisioners::Chef::Solo
- Defined in:
- lib/image_builder/provisioners/chef_solo.rb
Overview
Generic class doc comment
Constant Summary
Constants included from ImageBuilder
Instance Attribute Summary collapse
-
#data_bags_path ⇒ Object
Returns the value of attribute data_bags_path.
-
#remote_cookbook_paths ⇒ Object
Returns the value of attribute remote_cookbook_paths.
-
#roles_path ⇒ Object
Returns the value of attribute roles_path.
Attributes inherited from Base
#chef_version, #config_template, #cookbook_paths, #encrypted_data_bag_secret_path, #execute_command, #install_command, #json, #prevent_sudo, #run_list, #skip_install, #staging_directory, #type
Instance Method Summary collapse
-
#initialize ⇒ Solo
constructor
A new instance of Solo.
- #packer_hash ⇒ Object
Methods inherited from Base
#cookbook_path, #encrypted_data_bag_secret, from_file
Constructor Details
#initialize ⇒ Solo
Returns a new instance of Solo.
14 15 16 17 |
# File 'lib/image_builder/provisioners/chef_solo.rb', line 14 def initialize super @type = 'chef-solo' end |
Instance Attribute Details
#data_bags_path ⇒ Object
Returns the value of attribute data_bags_path.
10 11 12 |
# File 'lib/image_builder/provisioners/chef_solo.rb', line 10 def data_bags_path @data_bags_path end |
#remote_cookbook_paths ⇒ Object
Returns the value of attribute remote_cookbook_paths.
11 12 13 |
# File 'lib/image_builder/provisioners/chef_solo.rb', line 11 def remote_cookbook_paths @remote_cookbook_paths end |
#roles_path ⇒ Object
Returns the value of attribute roles_path.
12 13 14 |
# File 'lib/image_builder/provisioners/chef_solo.rb', line 12 def roles_path @roles_path end |
Instance Method Details
#packer_hash ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/image_builder/provisioners/chef_solo.rb', line 19 def packer_hash hash = super attr_to_hash(hash, :data_bags_path) attr_to_hash(hash, :remote_cookbook_paths) attr_to_hash(hash, :roles_path) attr_to_hash(hash, :cookbook_paths) attr_to_hash(hash, :encrypted_data_bag_secret_path) hash end |