Sha256: ddb05c1fe3f15d8ac4b191b221d92bbe842f14babe5932dff82baf3b6d68b958

Contents?: true

Size: 824 Bytes

Versions: 35

Compression:

Stored size: 824 Bytes

Contents

require 'active_support/core_ext/hash'
require 'active_support/json'

module Runcible
  module Models
    # Generic class to represent Pulp Importers
    # Child classes should supply id & config methods
    class Importer
      # https://github.com/pulp/pulp/blob/2.7-testing/common/pulp/common/plugins/importer_constants.py
      attr_accessor 'feed', 'validate',
                    'ssl_ca_cert', 'ssl_validation', 'ssl_client_cert', 'ssl_client_key',
                    'proxy_host', 'proxy_port', 'proxy_username', 'proxy_password',
                    'basic_auth_username', 'basic_auth_password',
                    'max_downloads', 'max_speed',
                    'remove_missing', 'retain_old_count'

      def initialize(params = {})
        params.each { |k, v| send("#{k}=", v) }
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
runcible-2.13.1 lib/runcible/models/importer.rb
runcible-2.13.0 lib/runcible/models/importer.rb
runcible-2.12.1 lib/runcible/models/importer.rb
runcible-2.12.0 lib/runcible/models/importer.rb
runcible-2.11.1 lib/runcible/models/importer.rb
runcible-2.11.0 lib/runcible/models/importer.rb
runcible-2.10.1 lib/runcible/models/importer.rb
runcible-2.10.0 lib/runcible/models/importer.rb
runcible-2.9.0 lib/runcible/models/importer.rb
runcible-2.8.1 lib/runcible/models/importer.rb
runcible-2.8.0 lib/runcible/models/importer.rb
runcible-2.7.0 lib/runcible/models/importer.rb
runcible-2.6.0 lib/runcible/models/importer.rb
runcible-2.5.0 lib/runcible/models/importer.rb
runcible-2.4.0 lib/runcible/models/importer.rb
runcible-2.3.0 lib/runcible/models/importer.rb
runcible-2.2.0 lib/runcible/models/importer.rb
runcible-1.12.0 lib/runcible/models/importer.rb
runcible-2.1.0 lib/runcible/models/importer.rb
runcible-2.0.1 lib/runcible/models/importer.rb