class Pulp::Task

Public Class Methods

cancel(taskid) click to toggle source
# File lib/pulp/task.rb, line 17
def self.cancel(taskid)
  self.new(base_post(taskid,'cancel/'))
end
delete_snapshot(taskid) click to toggle source
# File lib/pulp/task.rb, line 25
def self.delete_snapshot(taskid)
  Pulp::TaskSnapshot.new(base_delete(taskid,'snapshot/'))
end
snapshot(taskid) click to toggle source
# File lib/pulp/task.rb, line 33
def self.snapshot(taskid)
  Pulp::TaskSnapshot.new(base_get(taskid,'snapshot/'))
end

Public Instance Methods

cancel() click to toggle source
# File lib/pulp/task.rb, line 13
def cancel
  self.class.cancel(id)
end
delete_snapshot() click to toggle source
# File lib/pulp/task.rb, line 21
def delete_snapshot
  self.class.delete_snapshot(id)
end
snapshot() click to toggle source
# File lib/pulp/task.rb, line 29
def snapshot
  self.class.snapshot(id)
end