Class: Chef::Knife::SoloClean
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::SoloClean
- Includes:
- KnifeSolo::SshCommand
- Defined in:
- lib/chef/knife/solo_clean.rb
Direct Known Subclasses
Instance Method Summary collapse
- #provisioning_path ⇒ Object
-
#run ⇒ Object
TODO de-duplicate this option with solo cook.
- #validate! ⇒ Object
Methods included from KnifeSolo::SshCommand
#ask_password, #config_file_options, #config_files, #connection_options, #custom_sudo_command, #detect_authentication_method, #first_cli_arg_is_a_hostname?, #host, #host_descriptor, #identity_file, included, load_deps, #password, #process_startup_file, #process_sudo, #processed_command, #run_command, #run_portable_mkdir_p, #run_with_fallbacks, #ssh_args, #ssh_connection, #ssh_control_path, #standard_sudo_command, #startup_script, #stream_command, #sudo_available?, #sudo_command, #try_connection, #user, #validate_ssh_options!, #windows_node?
Instance Method Details
#provisioning_path ⇒ Object
32 33 34 35 |
# File 'lib/chef/knife/solo_clean.rb', line 32 def provisioning_path # TODO de-duplicate this method with solo cook KnifeSolo::Tools.config_value(config, :provisioning_path, '~/chef-solo') end |
#run ⇒ Object
TODO de-duplicate this option with solo cook
22 23 24 25 26 |
# File 'lib/chef/knife/solo_clean.rb', line 22 def run validate! ui.msg "Cleaning up #{host}..." run_command "sudo rm -rf #{provisioning_path}" end |
#validate! ⇒ Object
28 29 30 |
# File 'lib/chef/knife/solo_clean.rb', line 28 def validate! end |