Project

General

Profile

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

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

1 801e7a1c Justin Sherrill
module Runcible
2 661ca339 Justin Sherrill
  module Models
3 801e7a1c Justin Sherrill
    class YumImporter < Importer
4 5126dd02 David Davis
      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 24966ce8 David Davis
      DOWNLOAD_POLICIES = [DOWNLOAD_IMMEDIATE, DOWNLOAD_ON_DEMAND, DOWNLOAD_BACKGROUND].freeze
10
11 a5858c9b Partha Aji
      attr_accessor 'download_policy', 'type_skip_list'
12 801e7a1c Justin Sherrill
13 3e3ad61c Partha Aji
      def id
14
        YumImporter::ID
15
      end
16 79f61c9f Brad Buckingham
17 3e3ad61c Partha Aji
      def repo_type
18
        YumImporter::REPO_TYPE
19
      end
20 801e7a1c Justin Sherrill
21 3e3ad61c Partha Aji
      def config
22
        as_json
23 801e7a1c Justin Sherrill
      end
24 3e3ad61c Partha Aji
    end
25 801e7a1c Justin Sherrill
  end
26 abc913d9 Eric D. Helms
end