Class: Jenkins2::API::Credentials::Store::Proxy

Inherits:
ResourceProxy show all
Defined in:
lib/jenkins2/api/credentials.rb

Instance Attribute Summary

Attributes inherited from ResourceProxy

#connection, #path

Instance Method Summary collapse

Methods inherited from ResourceProxy

#initialize, #method_missing, #raw, #respond_to_missing?, #subject

Constructor Details

This class inherits a constructor from Jenkins2::ResourceProxy

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Jenkins2::ResourceProxy

Instance Method Details

#create_domain(config_xml) ⇒ Object



25
26
27
28
29
# File 'lib/jenkins2/api/credentials.rb', line 25

def create_domain(config_xml)
	connection.post(build_path('createDomain'), config_xml) do |req|
		req['Content-Type'] = 'text/xml'
	end.code == '200'
end

#domain(id, params = {}) ⇒ Object



21
22
23
# File 'lib/jenkins2/api/credentials.rb', line 21

def domain(id, params={})
	Domain::Proxy.new(connection, build_path('domain', id), params)
end