lib/runcible/models/export_distributor.rb in runcible-1.5.1 vs lib/runcible/models/export_distributor.rb in runcible-1.6.0
- old
+ new
@@ -3,19 +3,21 @@
module Runcible
module Models
class ExportDistributor < Distributor
#required attributes
- attr_accessor 'http', 'https'
+ attr_accessor 'http', 'https', 'relative_url'
# 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]
- def initialize(http, https)
+ 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
# Distributor Type id