Project

General

Profile

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

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

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

    
4
module Runcible
5
  module Models
6
    class PuppetInstallDistributor < Distributor
7
      attr_accessor 'install_path', 'subdir'
8

    
9
      def initialize(install_path, params = {})
10
        @install_path = install_path
11
        super(params)
12
      end
13

    
14
      def self.type_id
15
        'puppet_install_distributor'
16
      end
17

    
18
      def config
19
        to_ret = self.as_json
20
        to_ret.delete('id')
21
        to_ret
22
      end
23
    end
24
  end
25
end