Class: Fontist::FontconfigCLI
- Inherits:
-
Thor
- Object
- Thor
- Fontist::FontconfigCLI
- Includes:
- CLI::ClassOptions
- Defined in:
- lib/fontist/fontconfig_cli.rb
Instance Method Summary collapse
Methods included from CLI::ClassOptions
#handle_class_options, included, #log_level
Instance Method Details
#remove ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/fontist/fontconfig_cli.rb', line 19 def remove () Fontconfig.remove() Fontist.ui.success("Fontconfig file has been successfully removed.") CLI::STATUS_SUCCESS rescue Errors::FontconfigFileNotFoundError => e Fontist.ui.error(e.) CLI::STATUS_FONTCONFIG_FILE_NOT_FOUND end |
#update ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/fontist/fontconfig_cli.rb', line 6 def update () Fontconfig.update Fontist.ui.success("Fontconfig file has been successfully updated.") CLI::STATUS_SUCCESS rescue Errors::FontconfigNotFoundError => e Fontist.ui.error(e.) CLI::STATUS_FONTCONFIG_NOT_FOUND end |