Class: Runcible::Models::ExportDistributor
- Inherits:
-
Distributor
- Object
- Distributor
- Runcible::Models::ExportDistributor
- Defined in:
- lib/runcible/models/export_distributor.rb
Instance Attribute Summary collapse
-
#http ⇒ Object
required.
-
#https ⇒ Object
required.
Attributes inherited from Distributor
Class Method Summary collapse
-
.type_id ⇒ string
Distributor Type id.
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/models/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 => type_id}) end |
Instance Attribute Details
#http ⇒ Object
required
31 32 33 |
# File 'lib/runcible/models/export_distributor.rb', line 31 def http @http end |
#https ⇒ Object
required
31 32 33 |
# File 'lib/runcible/models/export_distributor.rb', line 31 def https @https end |
Class Method Details
.type_id ⇒ string
Distributor Type id
48 49 50 |
# File 'lib/runcible/models/export_distributor.rb', line 48 def self.type_id 'export_distributor' end |
Instance Method Details
#config ⇒ Hash
generate the pulp config for the export distributor
55 56 57 58 59 60 |
# File 'lib/runcible/models/export_distributor.rb', line 55 def config to_ret = as_json to_ret.delete('auto_publish') to_ret.delete('id') to_ret end |