Module: Jenkins2::API::RUD
- Included in:
- Computer::Proxy, Credentials::Store::Domain::Credential::Proxy, Credentials::Store::Domain::Proxy, Job::Proxy, View::Proxy
- Defined in:
- lib/jenkins2/api/rud.rb
Instance Method Summary collapse
Instance Method Details
#config_xml ⇒ Object
Read
7 8 9 |
# File 'lib/jenkins2/api/rud.rb', line 7 def config_xml connection.get(build_path('config.xml')).body end |
#delete ⇒ Object
15 16 17 18 |
# File 'lib/jenkins2/api/rud.rb', line 15 def delete connection.post(build_path('doDelete')).code == '302' # connection.delete(build_path('config.xml')).code == '302' end |
#update(config_xml) ⇒ Object
11 12 13 |
# File 'lib/jenkins2/api/rud.rb', line 11 def update(config_xml) connection.post(build_path('config.xml'), config_xml).code == '200' end |