Sha256: e53a394a1808b47e5f92d6e1cdaf405ea2ebbf572e3f67738f7d750d1c9ebba0
Contents?: true
Size: 888 Bytes
Versions: 11
Compression:
Stored size: 888 Bytes
Contents
require 'chef/knife' require 'knife-solo/ssh_command' class Chef class Knife class SoloClean < Knife include KnifeSolo::SshCommand deps do require 'knife-solo/tools' KnifeSolo::SshCommand.load_deps end banner "knife solo clean [USER@]HOSTNAME" option :provisioning_path, :long => '--provisioning-path path', :description => 'Where to store kitchen data on the node' # TODO de-duplicate this option with solo cook def run validate! ui.msg "Cleaning up #{host}..." run_command "rm -rf #{provisioning_path}" end def validate! validate_ssh_options! end def provisioning_path # TODO de-duplicate this method with solo cook KnifeSolo::Tools.config_value(config, :provisioning_path, '~/chef-solo') end end end end
Version data entries
11 entries across 11 versions & 1 rubygems