Class: Dude::Setup::Jira

Inherits:
Object
  • Object
show all
Defined in:
lib/dude/setup/jira.rb

Instance Method Summary collapse

Constructor Details

#initialize(prompt) ⇒ Jira

Returns a new instance of Jira.



6
7
8
# File 'lib/dude/setup/jira.rb', line 6

def initialize(prompt)
  @prompt = prompt
end

Instance Method Details

#call(settings:) ⇒ Object

rubocop:disable Metrics/AbcSize



11
12
13
14
15
16
17
18
# File 'lib/dude/setup/jira.rb', line 11

def call(settings:)
  settings[:jira][:email] = setup_email
  settings[:jira][:token] = setup_token
  settings[:jira][:project][:url] = setup_project_url
  settings[:jira][:project][:key] = setup_project_key
  settings[:jira][:board_id] = setup_board_id
  settings
end