Class: Applocale::Command::Init

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

Instance Method Summary collapse

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, options[:path], options[:result_file])
end

#findkey(key) ⇒ Object



58
59
60
# File 'lib/applocale/Command/init.rb', line 58

def findkey(key)
  Applocale::findkey(key, options[:path], options[: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, options[:path], options[:config_file])
end

#reverseObject



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

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

#updateObject



25
26
27
# File 'lib/applocale/Command/init.rb', line 25

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

#update_localObject



32
33
34
# File 'lib/applocale/Command/init.rb', line 32

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

#versionObject



46
47
48
# File 'lib/applocale/Command/init.rb', line 46

def version()
  puts Applocale::VERSION
end