Skip to content

Commit

Permalink
Merge 4e3c639 into f6bd81b
Browse files Browse the repository at this point in the history
  • Loading branch information
stbenjam committed Jan 29, 2018
2 parents f6bd81b + 4e3c639 commit 0ef4d9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/runcible/models/iso_distributor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ module Runcible
module Models
class IsoDistributor < Distributor
#required attributes
attr_accessor 'serve_http', 'serve_https'
attr_accessor 'relative_url', 'serve_http', 'serve_https'

# 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]
def initialize(http, https, options = {})
def initialize(relative_url, http, https, options = {})
@relative_url = relative_url
@serve_http = http
@serve_https = https
super(options)
Expand Down
2 changes: 1 addition & 1 deletion test/extensions/iso_repository_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def teardown
end

def test_create_with_importer_and_distributors_objects
distributors = [Runcible::Models::IsoDistributor.new(true, true, :id => 'iso_distributor')]
distributors = [Runcible::Models::IsoDistributor.new('/path', true, true, :id => 'iso_distributor')]
importer = Runcible::Models::IsoImporter.new(:feed => @repo_url)

response = @extension.create_with_importer_and_distributors(@repo_id, importer, distributors)
Expand Down

0 comments on commit 0ef4d9b

Please sign in to comment.