Module: Jenkins2::API::RUD

Instance Method Summary collapse

Instance Method Details

#config_xmlObject

Read



7
8
9
# File 'lib/jenkins2/api/rud.rb', line 7

def config_xml
	connection.get(build_path('config.xml')).body
end

#deleteObject



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