Class: Fastlane::Helper::CerberusHelper::JiraClientHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/cerberus/helper/cerberus_helper.rb

Class Method Summary collapse

Class Method Details

.client(host:, username:, password:, context_path:, disable_ssl_verification:) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fastlane/plugin/cerberus/helper/cerberus_helper.rb', line 10

def self.client(host:, username:, password:, context_path:, disable_ssl_verification:)
  options = {
   site: host,
   context_path: context_path,
   auth_type: :basic,
   username: username,
   password: password,
   ssl_verify_mode: disable_ssl_verification ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER
  }

  JIRA::Client.new(options)
end