Class: Pulp::Cds
- Inherits:
-
Pulp::Connection::Base
- Object
- Pulp::Connection::Base
- Pulp::Cds
- Defined in:
- lib/pulp/cds.rb
Instance Method Summary collapse
Methods inherited from Pulp::Connection::Base
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
Methods included from Pulp::Common::Lifecycle
#fields, included, #locked_fields, #record_fields, #special_fields, #user_fields
Constructor Details
This class inherits a constructor from Pulp::Connection::Base
Instance Method Details
#history(action) ⇒ Object
17 18 19 |
# File 'lib/pulp/cds.rb', line 17 def history(action) self.class.base_get("history/#{action}/",self.id).collect{|th| Pulp::TaskHistory.new(th) } end |
#repositories ⇒ Object
21 22 23 |
# File 'lib/pulp/cds.rb', line 21 def repositories repo_ids.collect{|repo_id| Pulp::Repository.find_by_id(repo_id).first }.compact end |