Class: Kitchen::Provisioner::Shell
- Defined in:
- lib/kitchen/provisioner/shell.rb
Overview
Basic shell provisioner.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#[], #calculate_path, #cleanup_sandbox, #config_keys, #diagnose, #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
40 41 42 43 44 |
# File 'lib/kitchen/provisioner/shell.rb', line 40 def create_sandbox super prepare_data prepare_script end |
#init_command ⇒ Object
46 47 48 49 |
# File 'lib/kitchen/provisioner/shell.rb', line 46 def init_command data = File.join(config[:root_path], "data") "#{sudo('rm')} -rf #{data} ; mkdir -p #{config[:root_path]}" end |
#run_command ⇒ Object
51 52 53 |
# File 'lib/kitchen/provisioner/shell.rb', line 51 def run_command sudo(File.join(config[:root_path], File.basename(config[:script]))) end |