class Runcible::Models::ExportDistributor
Attributes
http[RW]
required attributes
https[RW]
required attributes
relative_url[RW]
required attributes
Public Class Methods
new(http, https, relative_url = nil)
click to toggle source
Instantiates a export distributor
@param [boolean] http serve the contents over http @param [boolean] https serve the contents over https @param [string] #relative_url relative url (aka relative path) @return [Runcible::Extensions::ExportDistributor]
Calls superclass method
Runcible::Models::Distributor.new
# File lib/runcible/models/export_distributor.rb, line 16 def initialize(http, https, relative_url = nil) @http = http @https = https @relative_url = relative_url # Pulp seems to expect the ID to be export_distributor, not a random super({:id => type_id}) end
type_id()
click to toggle source
Distributor Type id
@return [string]
# File lib/runcible/models/export_distributor.rb, line 27 def self.type_id 'export_distributor' end
Public Instance Methods
config()
click to toggle source
generate the pulp config for the export distributor
@return [Hash]
# File lib/runcible/models/export_distributor.rb, line 34 def config to_ret = as_json to_ret.delete('auto_publish') to_ret.delete('id') to_ret end