Sha256: 7658aaabc61dc689fc5469306f05473b9ede0fbb024ea46e2dae3af3cb823f18
Contents?: true
Size: 1003 Bytes
Versions: 3
Compression:
Stored size: 1003 Bytes
Contents
require 'active_support/json' require 'securerandom' module Runcible module Models class ExportDistributor < Distributor #required attributes attr_accessor 'http', 'https' # Instantiates a export distributor # # @param [boolean] http serve the contents over http # @param [boolean] https serve the contents over https # @return [Runcible::Extensions::ExportDistributor] def initialize(http, https) @http = http @https = https # Pulp seems to expect the ID to be export_distributor, not a random super({:id => type_id}) end # Distributor Type id # # @return [string] def self.type_id 'export_distributor' end # generate the pulp config for the export 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
runcible-1.5.1 | lib/runcible/models/export_distributor.rb |
runcible-1.5.0 | lib/runcible/models/export_distributor.rb |
runcible-1.4.0 | lib/runcible/models/export_distributor.rb |