Class: Molflow::Commands::Open
Instance Method Summary
collapse
atlassian_configuration, base_config, client
install_options, jira_options, open_options
Instance Method Details
#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
|
#j(jira_key) ⇒ Object
39
40
41
42
43
44
45
46
|
# File 'lib/molflow/commands/open.rb', line 39
def j(jira_key)
options.merge! jira_key: jira_key
client = Jira.client
Launchy.open URI("#{client.options[:site]}/browse/#{options[:jira_key]}").to_s
rescue
puts 'ERROR!'
end
|
#pr(project_key) ⇒ Object
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/molflow/commands/open.rb', line 15
def pr(project_key)
options.merge! project_key: project_key
client = Jira.client
project = client.Project.find(options[:project_key])
Launchy.open URI("#{client.options[:site]}/browse/#{project.key}").to_s
rescue
puts 'Not found'
end
|