Class: LeeroyJenkins::JobUpdater
- Inherits:
-
Object
- Object
- LeeroyJenkins::JobUpdater
- Defined in:
- lib/leeroy_jenkins/job_updater.rb
Instance Attribute Summary collapse
-
#at_xpath ⇒ Object
readonly
Returns the value of attribute at_xpath.
-
#jenkins_client ⇒ Object
readonly
Returns the value of attribute jenkins_client.
-
#job_names_to_update ⇒ Object
readonly
Returns the value of attribute job_names_to_update.
-
#new_xml ⇒ Object
readonly
Returns the value of attribute new_xml.
-
#threads ⇒ Object
readonly
Returns the value of attribute threads.
-
#xpath ⇒ Object
readonly
Returns the value of attribute xpath.
Instance Method Summary collapse
-
#initialize(job_names_to_update, new_xml, jenkins_client, xpath, at_xpath, threads) ⇒ JobUpdater
constructor
A new instance of JobUpdater.
- #update_jobs(dry = true) ⇒ Object
Constructor Details
#initialize(job_names_to_update, new_xml, jenkins_client, xpath, at_xpath, threads) ⇒ JobUpdater
Returns a new instance of JobUpdater.
10 11 12 13 14 15 16 17 |
# File 'lib/leeroy_jenkins/job_updater.rb', line 10 def initialize(job_names_to_update, new_xml, jenkins_client, xpath, at_xpath, threads) @job_names_to_update = job_names_to_update @new_xml = new_xml @jenkins_client = jenkins_client @xpath = xpath @at_xpath = at_xpath @threads = threads end |
Instance Attribute Details
#at_xpath ⇒ Object (readonly)
Returns the value of attribute at_xpath.
3 4 5 |
# File 'lib/leeroy_jenkins/job_updater.rb', line 3 def at_xpath @at_xpath end |
#jenkins_client ⇒ Object (readonly)
Returns the value of attribute jenkins_client.
3 4 5 |
# File 'lib/leeroy_jenkins/job_updater.rb', line 3 def jenkins_client @jenkins_client end |
#job_names_to_update ⇒ Object (readonly)
Returns the value of attribute job_names_to_update.
3 4 5 |
# File 'lib/leeroy_jenkins/job_updater.rb', line 3 def job_names_to_update @job_names_to_update end |
#new_xml ⇒ Object (readonly)
Returns the value of attribute new_xml.
3 4 5 |
# File 'lib/leeroy_jenkins/job_updater.rb', line 3 def new_xml @new_xml end |
#threads ⇒ Object (readonly)
Returns the value of attribute threads.
3 4 5 |
# File 'lib/leeroy_jenkins/job_updater.rb', line 3 def threads @threads end |
#xpath ⇒ Object (readonly)
Returns the value of attribute xpath.
3 4 5 |
# File 'lib/leeroy_jenkins/job_updater.rb', line 3 def xpath @xpath end |