Class: CiHelper::Functions::Redmine
- Defined in:
- lib/ci_helper/functions/redmine.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
Returns the value of attribute status.
-
#text_box ⇒ Object
Returns the value of attribute text_box.
Attributes inherited from Base
#bit_bucket_client, #config, #issue_monitor, #redmine_client, #user_cli
Instance Method Summary collapse
- #issue_numbers=(value) ⇒ Object
-
#run ⇒ Object
This class responsible for update issue in redmine for one issue or multiple issue.
Methods inherited from Base
Constructor Details
This class inherits a constructor from CiHelper::Functions::Base
Instance Attribute Details
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/ci_helper/functions/redmine.rb', line 4 def status @status end |
#text_box ⇒ Object
Returns the value of attribute text_box.
4 5 6 |
# File 'lib/ci_helper/functions/redmine.rb', line 4 def text_box @text_box end |
Instance Method Details
#issue_numbers=(value) ⇒ Object
34 35 36 |
# File 'lib/ci_helper/functions/redmine.rb', line 34 def issue_numbers=(value) @issue_numbers = value end |
#run ⇒ Object
This class responsible for update issue in redmine for one issue or multiple issue
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/ci_helper/functions/redmine.rb', line 7 def run @issue_numbers = issue_numbers || user_cli.get_issue_numbers issue_numbers.each do |issue_number| redmine_client.issue_setting do |config| redmine_client.issue_no = issue_number puts "issue number : #{issue_number}" redmine_client.issue.print_all_status config.status = status || user_cli.get_status config.spend_time = user_cli.get_spent_time config.text_box = text_box || user_cli.get_more_info redmine_client.issue.submit end end end |