Class: PuppetRundeck

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/puppet-rundeck.rb

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.config_fileObject

Returns the value of attribute config_file.



24
25
26
# File 'lib/puppet-rundeck.rb', line 24

def config_file
  @config_file
end

.sourceObject

Returns the value of attribute source.



26
27
28
# File 'lib/puppet-rundeck.rb', line 26

def source
  @source
end

.usernameObject

Returns the value of attribute username.



25
26
27
# File 'lib/puppet-rundeck.rb', line 25

def username
  @username
end

Class Method Details

.configureObject



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