Class: Applocale::Command::Init

Inherits:
Thor
  • Object
show all
Defined in:
lib/applocale/Command/init.rb

Instance Method Summary collapse

Instance Method Details

#findkey(key) ⇒ Object



53
54
55
# File 'lib/applocale/Command/init.rb', line 53

def findkey(key)
  Applocale::findkey(key, options[:path])
end

#init(platform = nil) ⇒ Object



17
18
19
# File 'lib/applocale/Command/init.rb', line 17

def init(platform = nil)
  Applocale.create_config_file(platform, options[:path])
end

#reverseObject



36
37
38
39
# File 'lib/applocale/Command/init.rb', line 36

def reverse()
  is_skip = !options[:skip].nil?
  Applocale::start_reverse(is_skip, options[:path])
end

#updateObject



23
24
25
# File 'lib/applocale/Command/init.rb', line 23

def update()
  Applocale.start_update(options[:path])
end

#update_localObject



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

def update_local()
  Applocale.start_local_update(nil,options[:path])
end

#versionObject



42
43
44
# File 'lib/applocale/Command/init.rb', line 42

def version()
  puts Applocale::VERSION
end