30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# File 'lib/jira/commands/install.rb', line 30
def run
io.say('Please enter your JIRA information.')
inifile[:global] = base_params
inifile.write
inifile.delete_section("cookie") if inifile.has_section?("cookie")
case authentication
when "basic"
inifile[:global][:password] = password
when "token"
inifile[:global][:token] = token
when "cookie"
response = cookie(session_params)
inifile[:cookie] = {}
inifile[:cookie][:name] = response['name']
inifile[:cookie][:value] = response['value']
end
inifile.write
end
|