Class: Kubes::CLI::Clean

Inherits:
Base
  • Object
show all
Defined in:
lib/kubes/cli/clean.rb

Instance Method Summary collapse

Methods inherited from Base

#compile, #initialize, #pod_name

Methods included from Logging

#logger

Constructor Details

This class inherits a constructor from Kubes::CLI::Base

Instance Method Details

#runObject



3
4
5
6
7
# File 'lib/kubes/cli/clean.rb', line 3

def run
  path = ".kubes/output"
  FileUtils.rm_rf("#{Kubes.root}/#{path}")
  logger.info "Removed #{path}" unless @options[:mute]
end