Class: Runcible::Models::PuppetDistributor
- Inherits:
-
Distributor
- Object
- Distributor
- Runcible::Models::PuppetDistributor
- Defined in:
- lib/runcible/models/puppet_distributor.rb
Instance Attribute Summary collapse
-
#absolute_path ⇒ Object
Returns the value of attribute absolute_path.
-
#http_dir ⇒ Object
Returns the value of attribute http_dir.
-
#https_dir ⇒ Object
Returns the value of attribute https_dir.
-
#serve_http ⇒ Object
Returns the value of attribute serve_http.
-
#serve_https ⇒ Object
Returns the value of attribute serve_https.
Attributes inherited from Distributor
Class Method Summary collapse
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize(absolute_path, http, https, params = {}) ⇒ PuppetDistributor
constructor
A new instance of PuppetDistributor.
Methods inherited from Distributor
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_path ⇒ Object
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_dir ⇒ Object
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_dir ⇒ Object
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_http ⇒ Object
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_https ⇒ Object
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_id ⇒ Object
39 40 41 |
# File 'lib/runcible/models/puppet_distributor.rb', line 39 def self.type_id 'puppet_distributor' end |
Instance Method Details
#config ⇒ Object
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 |