Class: Applocale::Command::Init
- Inherits:
-
Thor
- Object
- Thor
- Applocale::Command::Init
- Defined in:
- lib/applocale/Command/init.rb
Instance Method Summary collapse
- #compare(file1, file2) ⇒ Object
- #compare_local(file1, file2) ⇒ Object
- #findkey(key) ⇒ Object
- #init(platform = nil) ⇒ Object
- #reverse ⇒ Object
- #update ⇒ Object
- #update_local ⇒ Object
- #version ⇒ Object
Instance Method Details
#compare(file1, file2) ⇒ Object
65 66 67 |
# File 'lib/applocale/Command/init.rb', line 65 def compare(file1, file2) Applocale::compare(file1, file2) end |
#compare_local(file1, file2) ⇒ Object
72 73 74 |
# File 'lib/applocale/Command/init.rb', line 72 def compare_local(file1, file2) Applocale::compare_local(file1, file2, [:path], [:result_file]) end |
#findkey(key) ⇒ Object
58 59 60 |
# File 'lib/applocale/Command/init.rb', line 58 def findkey(key) Applocale::findkey(key, [:path], [:config_file]) end |
#init(platform = nil) ⇒ Object
18 19 20 |
# File 'lib/applocale/Command/init.rb', line 18 def init(platform = nil) Applocale.create_config_file(platform, [:path], [:config_file]) end |
#reverse ⇒ Object
40 41 42 43 |
# File 'lib/applocale/Command/init.rb', line 40 def reverse() is_skip = ![:skip].nil? Applocale::start_reverse(is_skip, [:path],[:config_file]) end |
#update ⇒ Object
25 26 27 |
# File 'lib/applocale/Command/init.rb', line 25 def update() Applocale.start_update([:path],[:config_file]) end |
#update_local ⇒ Object
32 33 34 |
# File 'lib/applocale/Command/init.rb', line 32 def update_local() Applocale.start_local_update(nil,[:path], [:config_file]) end |