Project

General

Profile

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

runcible / lib / runcible / models / yum_importer.rb @ a5858c9b

1
module Runcible
2
  module Models
3
    class YumImporter < Importer
4
      ID = 'yum_importer'.freeze
5
      REPO_TYPE = 'rpm-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', 'type_skip_list'
12

    
13
      def id
14
        YumImporter::ID
15
      end
16

    
17
      def repo_type
18
        YumImporter::REPO_TYPE
19
      end
20

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