Class: Fontist::ImportCLI

Inherits:
Thor
  • Object
show all
Includes:
CLI::ClassOptions
Defined in:
lib/fontist/import_cli.rb

Instance Method Summary collapse

Methods included from CLI::ClassOptions

#handle_class_options, included, #log_level

Instance Method Details

#googleObject



13
14
15
16
17
18
# File 'lib/fontist/import_cli.rb', line 13

def google
  handle_class_options(options)
  require "fontist/import/google_import"
  Fontist::Import::GoogleImport.new(options).call
  CLI::STATUS_SUCCESS
end

#macosObject



21
22
23
24
25
26
# File 'lib/fontist/import_cli.rb', line 21

def macos
  handle_class_options(options)
  require_relative "import/macos"
  Import::Macos.new.call
  CLI::STATUS_SUCCESS
end

#silObject



29
30
31
32
33
34
# File 'lib/fontist/import_cli.rb', line 29

def sil
  handle_class_options(options)
  require "fontist/import/sil_import"
  Fontist::Import::SilImport.new.call
  CLI::STATUS_SUCCESS
end