Sha256: e91528a06bdfb21889fa8e153a5cfad9a6cb15507c2d5d95f69317b4f8115d2b
Contents?: true
Size: 605 Bytes
Versions: 5
Compression:
Stored size: 605 Bytes
Contents
require 'jira-ruby' module JiraIssues class JiraAdapter def create_task(task) issue = client.Issue.build issue.save(task.print) end def available? response = client.get('/') response.code == '200' end def jql(jql_query, fields) client.Issue.jql(jql_query, fields) end private def client @client = JIRA::Client.new( username: ENV['JIRA_USERNAME'], password: ENV['JIRA_PASSWORD'], site: ENV['JIRA_URL'], context_path: '', auth_type: :basic, read_timeout: 120 ) end end end
Version data entries
5 entries across 5 versions & 1 rubygems