Project

General

Profile

Revision d0cb4289

Added by Stephen Benjamin over 5 years ago

refs #22446 - use relative_url for iso repo path

View differences:

lib/runcible/models/iso_distributor.rb
5 5
  module Models
6 6
    class IsoDistributor < Distributor
7 7
      #required attributes
8
      attr_accessor 'serve_http', 'serve_https'
8
      attr_accessor 'relative_url', 'serve_http', 'serve_https'
9 9

  
10 10
      # Instantiates an iso distributor
11 11
      #
12
      # @param  [path]            relative URL
12 13
      # @param  [boolean]         http  serve the contents over http
13 14
      # @param  [boolean]         https serve the contents over https
14 15
      # @return [Runcible::Extensions::IsoDistributor]
15
      def initialize(http, https, options = {})
16
      def initialize(relative_url, http, https, options = {})
17
        @relative_url = relative_url
16 18
        @serve_http = http
17 19
        @serve_https = https
18 20
        super(options)

Also available in: Unified diff