Class: Ufo::CLI::Central::Clean

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

Instance Method Summary collapse

Methods inherited from Base

#execute, #initialize, #log

Methods included from Utils::Sure

#sure?

Methods included from Utils::Pretty

#pretty_home, #pretty_path, #pretty_time

Methods included from Utils::Logging

#logger

Constructor Details

This class inherits a constructor from Ufo::CLI::Central::Base

Instance Method Details

#runObject



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)
  log "Removed: #{pretty_home(path)}"
end