Class: Runcible::Models::PuppetDistributor

Inherits:
Distributor
  • Object
show all
Defined in:
lib/runcible/models/puppet_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(absolute_path, http, https, params = {}) ⇒ PuppetDistributor

Returns a new instance of PuppetDistributor.



32
33
34
35
36
37
# File 'lib/runcible/models/puppet_distributor.rb', line 32

def initialize(absolute_path, http, https, params={})
  @absolute_path = absolute_path
  @serve_http = http
  @serve_https = https
  super(params)
end

Instance Attribute Details

#absolute_pathObject

Returns the value of attribute absolute_path.



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

def absolute_path
  @absolute_path
end

#http_dirObject

Returns the value of attribute http_dir.



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

def http_dir
  @http_dir
end

#https_dirObject

Returns the value of attribute https_dir.



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

def https_dir
  @https_dir
end

#serve_httpObject

Returns the value of attribute serve_http.



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

def serve_http
  @serve_http
end

#serve_httpsObject

Returns the value of attribute serve_https.



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

def serve_https
  @serve_https
end

Class Method Details

.type_idObject



39
40
41
# File 'lib/runcible/models/puppet_distributor.rb', line 39

def self.type_id
  'puppet_distributor'
end

Instance Method Details

#configObject



43
44
45
46
47
48
# File 'lib/runcible/models/puppet_distributor.rb', line 43

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