Project

General

Profile

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

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

1
require 'active_support/json'
2
require 'securerandom'
3

    
4
module Runcible
5
  module Models
6
    # Requires the pulp-katello-plugins
7
    #  https://github.com/Katello/pulp-katello-plugins
8
    class YumCloneDistributor < Distributor
9
      #optional
10
      attr_accessor 'source_repo_id', 'source_distributor_id', 'destination_distributor_id'
11

    
12
      def initialize(params = {})
13
        super(params)
14
      end
15

    
16
      def self.type_id
17
        'yum_clone_distributor'
18
      end
19

    
20
      def config
21
        to_ret = self.as_json
22
        to_ret.delete('auto_publish')
23
        to_ret.delete('id')
24
        to_ret
25
      end
26
    end
27
  end
28
end