Class: Geera::Commands::Fix
- Defined in:
- lib/geera/commands/fix.rb
Instance Attribute Summary
Attributes inherited from Command
#argv, #config, #geera, #number
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Command
Constructor Details
This class inherits a constructor from Geera::Commands::Command
Class Method Details
.handle?(command) ⇒ Boolean
4 5 6 |
# File 'lib/geera/commands/fix.rb', line 4 def self.handle? command 'fix' == command end |
Instance Method Details
#execute! ⇒ Object
8 9 10 11 12 |
# File 'lib/geera/commands/fix.rb', line 8 def execute! ticket.start! if ticket.startable? ticket.fix! if ticket.fixable? ticket.assign_to config['qa'] if config['qa'] end |