Sha256: 202758df1671f101957d8d6fdcd93ae59938f312d51668f415b2d9f98021c30f

Contents?: true

Size: 367 Bytes

Versions: 1

Compression:

Stored size: 367 Bytes

Contents

module Fontist
  class CacheCLI < Thor
    include CLI::ClassOptions

    desc "clear", "Clear fontist download cache"
    def clear
      handle_class_options(options)
      dir = Fontist.downloads_path
      dir.each_child(&:delete) if dir.exist?
      Fontist.ui.success("Download cache has been successfully removed.")
      CLI::STATUS_SUCCESS
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fontist-1.15.0 lib/fontist/cache_cli.rb