class Fontist::FontconfigCLI

Public Instance Methods

remove() click to toggle source
# File lib/fontist/fontconfig_cli.rb, line 19
def remove
  handle_class_options(options)
  Fontconfig.remove(options)
  Fontist.ui.success("Fontconfig file has been successfully removed.")
  CLI::STATUS_SUCCESS
rescue Errors::FontconfigFileNotFoundError => e
  Fontist.ui.error(e.message)
  CLI::STATUS_FONTCONFIG_FILE_NOT_FOUND
end
update() click to toggle source
# File lib/fontist/fontconfig_cli.rb, line 6
def update
  handle_class_options(options)
  Fontconfig.update
  Fontist.ui.success("Fontconfig file has been successfully updated.")
  CLI::STATUS_SUCCESS
rescue Errors::FontconfigNotFoundError => e
  Fontist.ui.error(e.message)
  CLI::STATUS_FONTCONFIG_NOT_FOUND
end