Class: Hudson::XmlApi
- Inherits:
-
Object
- Object
- Hudson::XmlApi
- Defined in:
- lib/hudson-remote-api/hudson_xml_api.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
Instance Method Summary collapse
- #build_info_url(job_name, build_number) ⇒ Object
- #build_queue_info_url ⇒ Object
- #build_url(job_name) ⇒ Object
- #build_with_parameters_url(job_name) ⇒ Object
- #create_item_url ⇒ Object
- #crumb_url ⇒ Object
- #delete_url(job_name) ⇒ Object
- #disable_url(job_name) ⇒ Object
- #enable_url(job_name) ⇒ Object
-
#initialize(configuration) ⇒ XmlApi
constructor
A new instance of XmlApi.
- #job_config_url(job_name) ⇒ Object
- #job_info_url(job_name) ⇒ Object
- #server_info_url ⇒ Object
- #wipeout_workspace_url(job_name) ⇒ Object
Constructor Details
#initialize(configuration) ⇒ XmlApi
Returns a new instance of XmlApi.
5 6 7 |
# File 'lib/hudson-remote-api/hudson_xml_api.rb', line 5 def initialize(configuration) self.host = configuration.host end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/hudson-remote-api/hudson_xml_api.rb', line 3 def host @host end |
Instance Method Details
#build_info_url(job_name, build_number) ⇒ Object
13 14 15 |
# File 'lib/hudson-remote-api/hudson_xml_api.rb', line 13 def build_info_url(job_name, build_number) File.join(self.host, "job/#{job_name}/#{build_number}/api/xml") end |
#build_queue_info_url ⇒ Object
17 18 19 |
# File 'lib/hudson-remote-api/hudson_xml_api.rb', line 17 def build_queue_info_url File.join(self.host, "queue/api/xml") end |
#build_url(job_name) ⇒ Object
9 10 11 |
# File 'lib/hudson-remote-api/hudson_xml_api.rb', line 9 def build_url(job_name) File.join(self.host, "job/#{job_name}/build") end |
#build_with_parameters_url(job_name) ⇒ Object
21 22 23 |
# File 'lib/hudson-remote-api/hudson_xml_api.rb', line 21 def build_with_parameters_url(job_name) File.join(self.host, "job/#{job_name}/buildWithParameters") end |
#create_item_url ⇒ Object
25 26 27 |
# File 'lib/hudson-remote-api/hudson_xml_api.rb', line 25 def create_item_url File.join(self.host, "createItem") end |
#crumb_url ⇒ Object
29 30 31 |
# File 'lib/hudson-remote-api/hudson_xml_api.rb', line 29 def crumb_url File.join(self.host, "/crumbIssuer/api/xml") end |
#delete_url(job_name) ⇒ Object
33 34 35 |
# File 'lib/hudson-remote-api/hudson_xml_api.rb', line 33 def delete_url(job_name) File.join(self.host, "job/#{job_name}/doDelete") end |
#disable_url(job_name) ⇒ Object
37 38 39 |
# File 'lib/hudson-remote-api/hudson_xml_api.rb', line 37 def disable_url(job_name) File.join(self.host, "job/#{job_name}/disable") end |
#enable_url(job_name) ⇒ Object
41 42 43 |
# File 'lib/hudson-remote-api/hudson_xml_api.rb', line 41 def enable_url(job_name) File.join(self.host, "job/#{job_name}/enable") end |
#job_config_url(job_name) ⇒ Object
49 50 51 |
# File 'lib/hudson-remote-api/hudson_xml_api.rb', line 49 def job_config_url(job_name) File.join(self.host, "job/#{job_name}/config.xml") end |
#job_info_url(job_name) ⇒ Object
45 46 47 |
# File 'lib/hudson-remote-api/hudson_xml_api.rb', line 45 def job_info_url(job_name) File.join(self.host, "job/#{job_name}/api/xml") end |
#server_info_url ⇒ Object
53 54 55 |
# File 'lib/hudson-remote-api/hudson_xml_api.rb', line 53 def server_info_url File.join(self.host, "api/xml") end |
#wipeout_workspace_url(job_name) ⇒ Object
57 58 59 |
# File 'lib/hudson-remote-api/hudson_xml_api.rb', line 57 def wipeout_workspace_url(job_name) File.join(self.host, "job/#{job_name}/doWipeOutWorkspace") end |