Class: Helm::Commands::Status
- Defined in:
- lib/helm/commands/status.rb
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
#cache, #format, #initialize, #parameters
Constructor Details
This class inherits a constructor from Helm::Commands::Command
Instance Method Details
#run ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/helm/commands/status.rb', line 4 def run parameters :ticket, :status ticket = session.ticket old_status, new_status = ticket.state, session[:status] unless old_status == new_status ticket.state = new_status if ticket.save puts format.ticket_change(ticket, :status, old_status, new_status) end end end |