Class: AppLocale::Cli

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/applocale/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



33
34
35
# File 'lib/applocale/cli.rb', line 33

def self.source_root
  File.dirname(__FILE__) + "/templates"
end

Instance Method Details

#initObject



38
39
40
# File 'lib/applocale/cli.rb', line 38

def init
  copy_file "config.yml", "config/applocale.yml"
end

#pull(*languages) ⇒ Object



24
25
26
# File 'lib/applocale/cli.rb', line 24

def pull(*languages)
  AppLocale::Pull.new(config, options).call(languages)
end

#versionObject



29
30
31
# File 'lib/applocale/cli.rb', line 29

def version
  puts "AppLocale Version: #{AppLocale::VERSION}"
end