Sha256: ac157bb2f0ca6440a048700460eed023b39e48e862c49892e0b57ebb53c7b3ff

Contents?: true

Size: 521 Bytes

Versions: 2

Compression:

Stored size: 521 Bytes

Contents

require 'chef/knife'
require 'knife-solo/ssh_command'
require 'knife-solo/kitchen_command'

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

      banner "knife solo clean [USER@]HOSTNAME"

      def run
        validate!
        Chef::Config.from_file('solo.rb')
        run_command "rm -rf #{Chef::Config.file_cache_path}"
      end

      def validate!
        validate_ssh_options!
        validate_kitchen!
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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