Class: Rosette::Client::Commands::CommitCommand
- Defined in:
- lib/rosette/client/commands/commit_command.rb
Instance Attribute Summary
Attributes inherited from Command
#api, #args, #repo, #terminal, #writer
Instance Method Summary collapse
Methods inherited from Command
Constructor Details
This class inherits a constructor from Rosette::Client::Commands::Command
Instance Method Details
#execute ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/rosette/client/commands/commit_command.rb', line 16 def execute terminal.say("Committing phrases for '#{args.ref}'...") response = api.commit( repo_name: derive_repo_name, ref: args.ref ) handle_error(response) do terminal.say("Added: #{response.added || 0}") terminal.say("Removed: #{response.removed || 0}") terminal.say("Modified: #{response.modified || 0}") terminal.say('done.') end end |