Class: PolyglotCli::Command::Status
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/status.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/status.rb', line 11
def call
if server_changed?
prompt.warn('Changes have occured on the server.')
else
prompt.ok('No changes have been made on the server.')
end
end
|