class Runcible::Models::IsoDistributor

Attributes

relative_url[RW]

required attributes

serve_http[RW]

required attributes

serve_https[RW]

required attributes

Public Class Methods

new(relative_url, http, https, options = {}) click to toggle source

Instantiates an iso distributor

@param [path] relative URL @param [boolean] http serve the contents over http @param [boolean] https serve the contents over https @return [Runcible::Extensions::IsoDistributor]

Calls superclass method Runcible::Models::Distributor.new
# File lib/runcible/models/iso_distributor.rb, line 16
def initialize(relative_url, http, https, options = {})
  @relative_url = relative_url
  @serve_http = http
  @serve_https = https
  super(options)
end
type_id() click to toggle source

Distributor Type id

@return [string]

# File lib/runcible/models/iso_distributor.rb, line 26
def self.type_id
  'iso_distributor'
end

Public Instance Methods

config() click to toggle source

generate the pulp config for the iso distributor

@return [Hash]

# File lib/runcible/models/iso_distributor.rb, line 33
def config
  to_ret = as_json
  to_ret.delete('auto_publish')
  to_ret.delete('id')
  to_ret
end