Project

General

Profile

Download (692 Bytes) Statistics
| Branch: | Tag: | Revision:

runcible / lib / runcible / models / deb_importer.rb @ c0df0f4c

1
module Runcible
2
  module Models
3
    class DebImporter < Importer
4
      ID = 'deb_importer'.freeze
5
      REPO_TYPE = 'deb-repo'.freeze
6
      DOWNLOAD_IMMEDIATE = 'immediate'.freeze
7
      DOWNLOAD_ON_DEMAND = 'on_demand'.freeze
8
      DOWNLOAD_BACKGROUND = 'background'.freeze
9
      DOWNLOAD_POLICIES = [DOWNLOAD_IMMEDIATE, DOWNLOAD_ON_DEMAND, DOWNLOAD_BACKGROUND].freeze
10

    
11
      attr_accessor 'download_policy', 'releases', 'components', 'architectures', 'allowed_keys',
12
                    'require_signature', 'gpg_keys'
13

    
14
      def id
15
        DebImporter::ID
16
      end
17

    
18
      def repo_type
19
        DebImporter::REPO_TYPE
20
      end
21

    
22
      def config
23
        as_json
24
      end
25
    end
26
  end
27
end