Sha256: 8c741f5cb33f37fc3120ca4f125b205592174f07e84173e1f1bd6321fd6b2a71

Contents?: true

Size: 545 Bytes

Versions: 5

Compression:

Stored size: 545 Bytes

Contents

module Runcible
  module Models
    class YumImporter < Importer
      ID = 'yum_importer'
      REPO_TYPE = 'rpm-repo'
      DOWNLOAD_IMMEDIATE = 'immediate'
      DOWNLOAD_ON_DEMAND = 'on_demand'
      DOWNLOAD_BACKGROUND = 'background'
      DOWNLOAD_POLICIES = [DOWNLOAD_IMMEDIATE, DOWNLOAD_ON_DEMAND, DOWNLOAD_BACKGROUND].freeze

      attr_accessor 'download_policy'

      def id
        YumImporter::ID
      end

      def repo_type
        YumImporter::REPO_TYPE
      end

      def config
        as_json
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
runcible-1.7.2 lib/runcible/models/yum_importer.rb
runcible-1.7.1 lib/runcible/models/yum_importer.rb
runcible-1.7.0 lib/runcible/models/yum_importer.rb
runcible-1.6.0 lib/runcible/models/yum_importer.rb
runcible-1.5.1 lib/runcible/models/yum_importer.rb