Class: Ghq::Cache::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/ghq/cache/cli.rb

Instance Method Summary collapse

Instance Method Details

#log(path) ⇒ Object



13
14
15
16
# File 'lib/ghq/cache/cli.rb', line 13

def log(path)
  Logger.log(path)
  refresh
end

#purgeObject



19
20
21
22
# File 'lib/ghq/cache/cli.rb', line 19

def purge
  FileUtils.rm_f(Logger::LOG_PATH)
  FileUtils.rm_f(Builder::CACHE_PATH)
end

#refreshObject



8
9
10
# File 'lib/ghq/cache/cli.rb', line 8

def refresh
  Builder.build
end

#statsObject



25
26
27
# File 'lib/ghq/cache/cli.rb', line 25

def stats
  Stats.print_repository_usage
end