Sha256: f9d1d0cd7b0e9e20c455450ceaaca930eec7d87cbef9dc9bcb4c6bd4f0d27a2a

Contents?: true

Size: 941 Bytes

Versions: 23

Compression:

Stored size: 941 Bytes

Contents

require 'active_support/json'
require 'securerandom'

module Runcible
  module Models
    class IsoDistributor < Distributor
      #required attributes
      attr_accessor 'serve_http', 'serve_https'

      # Instantiates an iso distributor
      #
      # @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 = {})
        @serve_http = http
        @serve_https = https
        super(options)
      end

      # Distributor Type id
      #
      # @return [string]
      def self.type_id
        'iso_distributor'
      end

      # generate the pulp config for the iso distributor
      #
      # @return [Hash]
      def config
        to_ret = as_json
        to_ret.delete('auto_publish')
        to_ret.delete('id')
        to_ret
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
runcible-2.6.0 lib/runcible/models/iso_distributor.rb
runcible-2.5.0 lib/runcible/models/iso_distributor.rb
runcible-2.4.0 lib/runcible/models/iso_distributor.rb
runcible-2.3.0 lib/runcible/models/iso_distributor.rb
runcible-2.2.0 lib/runcible/models/iso_distributor.rb
runcible-1.12.0 lib/runcible/models/iso_distributor.rb
runcible-2.1.0 lib/runcible/models/iso_distributor.rb
runcible-2.0.1 lib/runcible/models/iso_distributor.rb
runcible-2.0.0 lib/runcible/models/iso_distributor.rb
runcible-1.11.0 lib/runcible/models/iso_distributor.rb
runcible-1.10.0 lib/runcible/models/iso_distributor.rb
runcible-1.9.3 lib/runcible/models/iso_distributor.rb
runcible-1.9.2 lib/runcible/models/iso_distributor.rb
runcible-1.9.1 lib/runcible/models/iso_distributor.rb
runcible-1.9.0 lib/runcible/models/iso_distributor.rb
runcible-1.8.0 lib/runcible/models/iso_distributor.rb
runcible-1.7.2 lib/runcible/models/iso_distributor.rb
runcible-1.7.1 lib/runcible/models/iso_distributor.rb
runcible-1.7.0 lib/runcible/models/iso_distributor.rb
runcible-1.6.0 lib/runcible/models/iso_distributor.rb