Module: BpmManager
- Defined in:
- lib/bpm_manager.rb,
lib/bpm_manager/oracle.rb,
lib/bpm_manager/red_hat.rb,
lib/bpm_manager/version.rb,
lib/generators/bpm_manager/install_generator.rb
Defined Under Namespace
Modules: Oracle, RedHat Classes: Configuration, InstallGenerator
Constant Summary collapse
- VERSION =
"0.6.20"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
-
.configure {|configuration| ... } ⇒ Object
Generates a new configuration.
-
.uri(rest_service = '') ⇒ Object
Returns the URI for the server plus a suffix.
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
7 8 9 |
# File 'lib/bpm_manager.rb', line 7 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
Generates a new configuration
24 25 26 27 |
# File 'lib/bpm_manager.rb', line 24 def self.configure self.configuration ||= Configuration.new yield(configuration) end |
.uri(rest_service = '') ⇒ Object
Returns the URI for the server plus a suffix
30 31 32 |
# File 'lib/bpm_manager.rb', line 30 def self.uri(rest_service = '') URI.encode('http' + (configuration.bpm_use_ssl ? 's' : '') + '://' + configuration.bpm_username + ':' + configuration.bpm_password + '@' + configuration.bpm_url + configuration.bpm_url_suffix + (rest_service.nil? ? '' : rest_service)) end |