Class: Runcible::Extensions::ExportDistributor
- Inherits:
-
Distributor
- Object
- Distributor
- Runcible::Extensions::ExportDistributor
- Defined in:
- lib/runcible/extensions/export_distributor.rb
Instance Attribute Summary collapse
-
#http ⇒ Object
required.
-
#https ⇒ Object
required.
Attributes inherited from Distributor
Class Method Summary collapse
Instance Method Summary collapse
-
#config ⇒ Hash
generate the pulp config for the export distributor.
-
#initialize(http, https) ⇒ Runcible::Extensions::ExportDistributor
constructor
Instantiates a export distributor.
Methods inherited from Distributor
Constructor Details
#initialize(http, https) ⇒ Runcible::Extensions::ExportDistributor
Instantiates a export distributor
38 39 40 41 42 43 |
# File 'lib/runcible/extensions/export_distributor.rb', line 38 def initialize(http, https) @http = http @https = https # Pulp seems to expect the ID to be export_distributor, not a random super({:id => self.type_id}) end |
Instance Attribute Details
#http ⇒ Object
required
31 32 33 |
# File 'lib/runcible/extensions/export_distributor.rb', line 31 def http @http end |
#https ⇒ Object
required
31 32 33 |
# File 'lib/runcible/extensions/export_distributor.rb', line 31 def https @https end |
Class Method Details
.type_id ⇒ Object
45 46 47 |
# File 'lib/runcible/extensions/export_distributor.rb', line 45 def self.type_id 'export_distributor' end |
Instance Method Details
#config ⇒ Hash
generate the pulp config for the export distributor
52 53 54 55 56 57 |
# File 'lib/runcible/extensions/export_distributor.rb', line 52 def config to_ret = self.as_json to_ret.delete('auto_publish') to_ret.delete('id') to_ret end |