Sha256: da707164883cfb6595a4da8b869d5f53a2a1d74bd3f65b7e0ae9420f92862ec6
Contents?: true
Size: 494 Bytes
Versions: 2
Compression:
Stored size: 494 Bytes
Contents
module Fontist class CLI < Thor module ClassOptions def handle_class_options(options) Fontist.preferred_family = options[:preferred_family] Fontist.log_level = log_level(options) if options[:formulas_path] Fontist.formulas_path = Pathname.new(options[:formulas_path]) end end def log_level(options) return :debug if options[:verbose] return :fatal if options[:quiet] :info end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fontist-1.17.1 | lib/fontist/cli/class_options.rb |
fontist-1.17.0 | lib/fontist/cli/class_options.rb |