Class: Kitchen::Provisioner::ChefSolo
- Defined in:
- lib/kitchen/provisioner/chef_solo.rb
Overview
Chef Solo provisioner.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from ChefBase
#init_command, #install_command
Methods inherited from Base
#[], #calculate_path, #cleanup_sandbox, #config_keys, #diagnose, #init_command, #initialize, #install_command, #name, #prepare_command, #sandbox_path
Constructor Details
This class inherits a constructor from Kitchen::Provisioner::Base
Instance Method Details
#create_sandbox ⇒ Object
32 33 34 35 |
# File 'lib/kitchen/provisioner/chef_solo.rb', line 32 def create_sandbox super prepare_solo_rb end |
#run_command ⇒ Object
37 38 39 40 41 42 43 44 45 |
# File 'lib/kitchen/provisioner/chef_solo.rb', line 37 def run_command [ sudo('chef-solo'), "--config #{config[:root_path]}/solo.rb", "--json-attributes #{config[:root_path]}/dna.json", config[:log_file] ? "--logfile #{config[:log_file]}" : nil, "--log_level #{config[:log_level]}" ].join(" ") end |