1 |
f9325ee8
|
Mike McCune
|
require 'active_support/json'
|
2 |
|
|
require 'securerandom'
|
3 |
|
|
|
4 |
|
|
module Runcible
|
5 |
|
|
module Models
|
6 |
|
|
class PuppetInstallDistributor < Distributor
|
7 |
c0df0f4c
|
Evgeni Golov
|
attr_accessor 'install_path', 'subdir'
|
8 |
f9325ee8
|
Mike McCune
|
|
9 |
5198c758
|
Mike McCune
|
def initialize(install_path, params = {})
|
10 |
f9325ee8
|
Mike McCune
|
@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 |