Class: Icapps::Translations::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/icapps/translations/cli.rb

Instance Method Summary collapse

Instance Method Details

#importObject



34
35
36
37
38
# File 'lib/icapps/translations/cli.rb', line 34

def import
  puts "[VERBOSE] Running the 'translations import command'.".colorize(:white) if options[:verbose]
  ::Icapps::Translations.options = options
  ::Icapps::Translations.import
end

#initObject



21
22
23
24
25
# File 'lib/icapps/translations/cli.rb', line 21

def init
  puts "[VERBOSE] Running the 'translations init command'.".colorize(:white) if options[:verbose]
  ::Icapps::Translations.options = options
  ::Icapps::Translations::Configuration.create
end