Class: Applocale::Command::Init
- Inherits:
-
Thor
- Object
- Thor
- Applocale::Command::Init
- Defined in:
- lib/applocale/Command/init.rb
Instance Method Summary collapse
- #findkey(key) ⇒ Object
- #init(platform = nil) ⇒ Object
- #reverse ⇒ Object
- #update ⇒ Object
- #update_local ⇒ Object
- #version ⇒ Object
Instance Method Details
#findkey(key) ⇒ Object
53 54 55 |
# File 'lib/applocale/Command/init.rb', line 53 def findkey(key) Applocale::findkey(key, [: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, [:path]) end |
#reverse ⇒ Object
36 37 38 39 |
# File 'lib/applocale/Command/init.rb', line 36 def reverse() is_skip = ![:skip].nil? Applocale::start_reverse(is_skip, [:path]) end |
#update ⇒ Object
23 24 25 |
# File 'lib/applocale/Command/init.rb', line 23 def update() Applocale.start_update([:path]) end |
#update_local ⇒ Object
29 30 31 |
# File 'lib/applocale/Command/init.rb', line 29 def update_local() Applocale.start_local_update(nil,[:path]) end |