Class: Helm::Commands::Resolve

Inherits:
Command
  • Object
show all
Defined in:
lib/helm/commands/resolve.rb

Instance Attribute Summary

Attributes inherited from Command

#session

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

#runObject



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/helm/commands/resolve.rb', line 4

def run
  parameters :ticket

  ticket = session.ticket

  ticket.state = 'resolved'
  
  if ticket.save
    puts "##{ticket.id} Resolved"
  end
end