Class: Ufo::CLI::Central::Clean
- Defined in:
- lib/ufo/cli/central/clean.rb
Instance Method Summary collapse
Methods inherited from Base
Methods included from Utils::Sure
Methods included from Utils::Pretty
#pretty_home, #pretty_path, #pretty_time
Methods included from Utils::Logging
Methods included from Utils::Execute
Constructor Details
This class inherits a constructor from Ufo::CLI::Central::Base
Instance Method Details
#run ⇒ Object
3 4 5 6 7 8 |
# File 'lib/ufo/cli/central/clean.rb', line 3 def run path = "#{ENV['HOME']}/.ufo/central" sure?("Will remove folder with repo caches: #{pretty_home(path)}") FileUtils.rm_rf(path) logger.info "Removed: #{pretty_home(path)}" end |