Sha256: 2f7d96db4d02b7049dedd2ab0ddc66fbc7cd7662e93c28743808318f332797b1

Contents?: true

Size: 623 Bytes

Versions: 6

Compression:

Stored size: 623 Bytes

Contents

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

      attr_accessor 'download_policy', 'releases', 'components', 'architectures'

      def id
        DebImporter::ID
      end

      def repo_type
        DebImporter::REPO_TYPE
      end

      def config
        as_json
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
runcible-2.8.1 lib/runcible/models/deb_importer.rb
runcible-2.8.0 lib/runcible/models/deb_importer.rb
runcible-2.7.0 lib/runcible/models/deb_importer.rb
runcible-2.6.0 lib/runcible/models/deb_importer.rb
runcible-2.5.0 lib/runcible/models/deb_importer.rb
runcible-2.4.0 lib/runcible/models/deb_importer.rb