Class: Rosette::Client::Commands::ShowCommand
- Inherits:
-
DiffCommand
- Object
- Command
- DiffCommand
- Rosette::Client::Commands::ShowCommand
- Defined in:
- lib/rosette/client/commands/show_command.rb
Overview
a show is really just a diff against your parent (so the inheritance makes sense)
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
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/rosette/client/commands/show_command.rb', line 17 def execute response = api.show( repo_name: derive_repo_name, ref: args.ref ) handle_error(response) do |response| print_diff(response.attributes) end end |