Class: Ghq::Cache::CLI
- Inherits:
-
Thor
- Object
- Thor
- Ghq::Cache::CLI
- 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 |
#purge ⇒ Object
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 |
#refresh ⇒ Object
8 9 10 |
# File 'lib/ghq/cache/cli.rb', line 8 def refresh Builder.build end |
#stats ⇒ Object
25 26 27 |
# File 'lib/ghq/cache/cli.rb', line 25 def stats Stats.print_repository_usage end |