Sha256: 5a40ca25717dc5b8c4a9bac4742d6f1cb9ef67dfb56f9a8c3acf1797458efb7e

Contents?: true

Size: 369 Bytes

Versions: 12

Compression:

Stored size: 369 Bytes

Contents

module Fontist
  class CLI < Thor
    module ClassOptions
      def handle_class_options(options)
        Fontist.preferred_family = options[:preferred_family]
        Fontist.log_level = options[:quiet] ? :fatal : :info

        if options[:formulas_path]
          Fontist.formulas_path = Pathname.new(options[:formulas_path])
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fontist-1.16.0 lib/fontist/cli/class_options.rb
fontist-1.15.2 lib/fontist/cli/class_options.rb
fontist-1.15.1 lib/fontist/cli/class_options.rb
fontist-1.15.0 lib/fontist/cli/class_options.rb
fontist-1.14.6 lib/fontist/cli/class_options.rb
fontist-1.14.5 lib/fontist/cli/class_options.rb
fontist-1.14.4 lib/fontist/cli/class_options.rb
fontist-1.14.3 lib/fontist/cli/class_options.rb
fontist-1.14.2 lib/fontist/cli/class_options.rb
fontist-1.14.1 lib/fontist/cli/class_options.rb
fontist-1.14.0 lib/fontist/cli/class_options.rb
fontist-1.13.2 lib/fontist/cli/class_options.rb