Class: PolyglotCli::Command::Setup
Class Method Summary
collapse
Instance Method Summary
collapse
#config, #languages, #project, #project_id, #remote_translations, #server_changed?, #token, #update_config
#prompt, #success
Class Method Details
.init ⇒ Object
7
8
9
|
# File 'lib/polyglot_cli/commands/setup.rb', line 7
def self.init
new.call
end
|
Instance Method Details
#call ⇒ Object
11
12
13
14
15
16
17
|
# File 'lib/polyglot_cli/commands/setup.rb', line 11
def call
PolyglotCli::IO::Config.write(
project_id: project_id_prompt,
locale_path: locale_path_prompt
)
success
end
|