Method: Molflow::Commands::Open#i

Defined in:
lib/molflow/commands/open.rb

#i(issue_key) ⇒ Object



27
28
29
30
31
32
33
34
35
36
# File 'lib/molflow/commands/open.rb', line 27

def i(issue_key)
  options.merge! issue_key: issue_key

  client = Jira.client
  issue =  client.Issue.find(options[:issue_key])

  Launchy.open URI("#{client.options[:site]}/browse/#{issue.key}").to_s
 rescue
  puts 'Not found'
end