Class: Pulp::Service
Class Method Summary
collapse
base, base_delete, base_get, base_post, base_put, base_unparsed_delete, base_unparsed_get, base_unparsed_post, base_unparsed_put, identifier, #initialize, merge_params, parse_item_cmd, plain_base, plain_get, plain_unparsed_get, reset, s, #set_fields
#fields, included, #locked_fields, #record_fields, #special_fields, #user_fields
Class Method Details
.append_file_content(id, data) ⇒ Object
22
23
24
|
# File 'lib/pulp/service.rb', line 22
def self.append_file_content(id,data)
base_unparsed_put('',"upload/append/#{id}",data,true)
end
|
.associate_packages(package_info) ⇒ Object
38
39
40
|
# File 'lib/pulp/service.rb', line 38
def self.associate_packages(package_info)
base_post('','associate/packages/',package_info)
end
|
.dependencies(pkgnames, repoids) ⇒ Object
4
5
6
|
# File 'lib/pulp/service.rb', line 4
def self.dependencies(pkgnames,repoids)
base_post('','dependencies/',{:pkgnames => pkgnames, :repoids => repoids})
end
|
.file_checksum(filelist) ⇒ Object
34
35
36
|
# File 'lib/pulp/service.rb', line 34
def self.file_checksum(filelist)
base_put('','files/checksum/',filelist)
end
|
.import_file(uploadid, metadata) ⇒ Object
26
27
28
|
# File 'lib/pulp/service.rb', line 26
def self.import_file(uploadid, metadata)
base_post('','upload/import',{:uploadid => uploadid, :metadata => metadata})
end
|
.package_checksum(pkglist) ⇒ Object
30
31
32
|
# File 'lib/pulp/service.rb', line 30
def self.package_checksum(pkglist)
base_put('','packages/checksum/',pkglist)
end
|
.repo_discovery(url, type, cert_data) ⇒ Object
42
43
44
|
# File 'lib/pulp/service.rb', line 42
def self.repo_discovery(url,type,cert_data)
Pulp::Task.new(base_post('','discovery/repo/',{:url => url, :type => type, :cert_data => cert_data }))
end
|
.repo_discovery_staus(taskid) ⇒ Object
46
47
48
|
# File 'lib/pulp/service.rb', line 46
def self.repo_discovery_staus(taskid)
Pulp::Task.new(base_get('',"discovery/repo/#{taskid}"))
end
|
.search_package(params) ⇒ Object
8
9
10
|
# File 'lib/pulp/service.rb', line 8
def self.search_package(params)
base_post('','search/packages/',params)
end
|
.start_upload(name, size, checksum, id = nil) ⇒ Object
12
13
14
15
16
17
18
19
20
|
# File 'lib/pulp/service.rb', line 12
def self.start_upload(name,size,checksum,id=nil)
params = {
:name => name,
:size => size,
:checksum => checksum
}
params[:id] = id unless id.nil?
base_post('','upload',params)
end
|