lib/dude/project_management/jira/client.rb in dude-cli-2.1.0.alpha4 vs lib/dude/project_management/jira/client.rb in dude-cli-2.1.0.alpha5

- old
+ new

@@ -10,19 +10,17 @@ module ProjectManagement module Jira class Client attr_reader :client, :project - class << self - def options - { - username: Dude::SETTINGS.dig(:jira, :email), - password: Dude::SETTINGS.dig(:jira, :token), - site: Dude::SETTINGS.dig(:jira, :project, :url), - context_path: '', - auth_type: :basic - } - end + def options + { + username: Dude::SETTINGS.dig(:jira, :email), + password: Dude::SETTINGS.dig(:jira, :token), + site: Dude::SETTINGS.dig(:jira, :project, :url), + context_path: '', + auth_type: :basic + } end def initialize @client = JIRA::Client.new(options) @project = client.Project.find(Dude::SETTINGS.dig(:jira, :project, :key))