Class: UserCommandLineInterface

Inherits:
Object
  • Object
show all
Defined in:
lib/ci_helper/user_command_line_interface.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeUserCommandLineInterface

Returns a new instance of UserCommandLineInterface.



7
8
9
# File 'lib/ci_helper/user_command_line_interface.rb', line 7

def initialize
  @issue_monitor = IssueMonitor.new(CiConfig., CiConfig.ci_password, ticket_no)
end

Instance Attribute Details

#issue_monitorObject (readonly)

Returns the value of attribute issue_monitor.



5
6
7
# File 'lib/ci_helper/user_command_line_interface.rb', line 5

def issue_monitor
  @issue_monitor
end

Instance Method Details

#get_ticket_noObject



20
21
22
# File 'lib/ci_helper/user_command_line_interface.rb', line 20

def get_ticket_no

end

#queueing_questionObject



28
29
30
31
# File 'lib/ci_helper/user_command_line_interface.rb', line 28

def queueing_question
  puts 'Your issue is queue or enter wrong issue number, do you want to wait the queue?'
  puts 'y\n'
end

#runObject



11
12
13
# File 'lib/ci_helper/user_command_line_interface.rb', line 11

def run

end

#ticket_questionObject



24
25
26
# File 'lib/ci_helper/user_command_line_interface.rb', line 24

def ticket_question
  puts 'Please Input your next ticked number '
end

#user_answer?Boolean

Returns:

  • (Boolean)


15
16
17
18
# File 'lib/ci_helper/user_command_line_interface.rb', line 15

def user_answer?
  result = gets.chop
  result == 'y' || result == 'Y'
end