Sha256: f652bb665edde9780572015f0adca814834a72a45d0f8989141539d18034beb5

Contents?: true

Size: 475 Bytes

Versions: 2

Compression:

Stored size: 475 Bytes

Contents

require 'chef/knife'

require 'knife-solo/ssh_command'
require 'knife-solo/config'

class Chef
  class Knife
    class SoloClean < Knife
      include KnifeSolo::SshCommand

      banner "knife solo clean [USER@]HOSTNAME"

      def run
        @solo_config = KnifeSolo::Config.new
        validate!
        run_command "rm -rf #{@solo_config.chef_path}"
      end

      def validate!
        validate_ssh_options!
        @solo_config.validate!
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
knife-solo-0.3.0.pre2 lib/chef/knife/solo_clean.rb
knife-solo-0.3.0.pre1 lib/chef/knife/solo_clean.rb