Class: Helm::Commands::Open

Inherits:
Command
  • Object
show all
Defined in:
lib/helm/commands/open.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
# File 'lib/helm/commands/open.rb', line 4

def run
  parameters :ticket

  system "open #{session.url}/projects/#{session.project_id}/tickets/#{session[:ticket]}"
end