Class: PuppetRundeck
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- PuppetRundeck
- Defined in:
- lib/puppet-rundeck.rb
Class Attribute Summary collapse
-
.config_file ⇒ Object
Returns the value of attribute config_file.
-
.source ⇒ Object
Returns the value of attribute source.
-
.username ⇒ Object
Returns the value of attribute username.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.config_file ⇒ Object
Returns the value of attribute config_file.
24 25 26 |
# File 'lib/puppet-rundeck.rb', line 24 def config_file @config_file end |
.source ⇒ Object
Returns the value of attribute source.
26 27 28 |
# File 'lib/puppet-rundeck.rb', line 26 def source @source end |
.username ⇒ Object
Returns the value of attribute username.
25 26 27 |
# File 'lib/puppet-rundeck.rb', line 25 def username @username end |
Class Method Details
.configure ⇒ Object
28 29 30 31 |
# File 'lib/puppet-rundeck.rb', line 28 def configure Puppet[:config] = PuppetRundeck.config_file Puppet.parse_config end |
Instance Method Details
#xml_escape(input) ⇒ Object
34 35 36 37 |
# File 'lib/puppet-rundeck.rb', line 34 def xml_escape(input) # don't know if is string, so convert to string first, then to XML escaped text. return input.to_s.to_xs end |