Class: Runcible::Models::PuppetInstallDistributor

Inherits:
Distributor
  • Object
show all
Defined in:
lib/runcible/models/puppet_install_distributor.rb

Instance Attribute Summary collapse

Attributes inherited from Distributor

#auto_publish, #id

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Distributor

#type_id

Constructor Details

#initialize(install_path, params = {}) ⇒ PuppetInstallDistributor

Returns a new instance of PuppetInstallDistributor.



32
33
34
35
# File 'lib/runcible/models/puppet_install_distributor.rb', line 32

def initialize(install_path, params = {})
  @install_path = install_path
  super(params)
end

Instance Attribute Details

#install_pathObject

Returns the value of attribute install_path.



30
31
32
# File 'lib/runcible/models/puppet_install_distributor.rb', line 30

def install_path
  @install_path
end

Class Method Details

.type_idObject



37
38
39
# File 'lib/runcible/models/puppet_install_distributor.rb', line 37

def self.type_id
  'puppet_install_distributor'
end

Instance Method Details

#configObject



41
42
43
44
45
# File 'lib/runcible/models/puppet_install_distributor.rb', line 41

def config
  to_ret = self.as_json
  to_ret.delete('id')
  to_ret
end