Class: Fontist::CacheCLI
- Inherits:
-
Thor
- Object
- Thor
- Fontist::CacheCLI
- Includes:
- Fontist::CLI::ClassOptions
- Defined in:
- lib/fontist/cache_cli.rb
Instance Method Summary collapse
Methods included from Fontist::CLI::ClassOptions
#handle_class_options, included, #log_level
Instance Method Details
#clear ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/fontist/cache_cli.rb', line 6 def clear () dir = Fontist.downloads_path dir.each_child(&:rmtree) if dir.exist? clear_indexes Fontist.ui.success("Cache has been successfully removed.") CLI::STATUS_SUCCESS end |