Class: Xcrowdin::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/xcrowdin/cli.rb

Instance Method Summary collapse

Instance Method Details

#to_crowdinObject



12
13
14
15
16
17
18
19
20
21
# File 'lib/xcrowdin/cli.rb', line 12

def to_crowdin
  client = Xcrowdin::Client.new(
    options[:api_key],
    options[:project_id],
    options[:crowdin_path],
    options[:xcode_project],
    options[:langs]
  )
  client.to_crowdin
end

#to_xcodeObject



29
30
31
32
33
34
35
36
37
38
# File 'lib/xcrowdin/cli.rb', line 29

def to_xcode
  client = Xcrowdin::Client.new(
    options[:api_key],
    options[:project_id],
    options[:crowdin_path],
    options[:xcode_project],
    options[:langs]
  )
  client.to_xcode
end