Class: PolyglotIos::Command::Pull
- Inherits:
-
Object
- Object
- PolyglotIos::Command::Pull
- Includes:
- Helper::General, Helper::Terminal
- Defined in:
- lib/ios_polyglot_cli/commands/pull.rb
Constant Summary
Constants included from Helper::General
Helper::General::ESCAPE_KEYWORDS
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options = Commander::Command::Options.new) ⇒ Pull
constructor
A new instance of Pull.
Methods included from Helper::General
#clean_case_name, #clean_enum_name, #clean_variable_name, #config, #escape_keyword_if_needed, #escape_with_underscore_if_needed, #indent, #programming_language, #project_configs, #skip_writing_language_struct, #token, #token_env_variable, #url, #use_old_naming
Methods included from Helper::Terminal
#generate_token_message, #prompt, #success
Constructor Details
#initialize(options = Commander::Command::Options.new) ⇒ Pull
Returns a new instance of Pull.
13 14 15 |
# File 'lib/ios_polyglot_cli/commands/pull.rb', line 13 def initialize( = Commander::Command::Options.new) @options = end |
Class Method Details
.init(options = Commander::Command::Options.new) ⇒ Object
9 10 11 |
# File 'lib/ios_polyglot_cli/commands/pull.rb', line 9 def self.init( = Commander::Command::Options.new) new().call end |
Instance Method Details
#call ⇒ Object
17 18 19 20 21 22 |
# File 'lib/ios_polyglot_cli/commands/pull.rb', line 17 def call prompt.say("Fetching translations...") if generate_translations(project_configs, programming_language, skip_writing_language_struct) success("Translations successfully generated!") end end |