module BpmManager
Constants
- VERSION
Attributes
configuration[RW]
Public Class Methods
configure() { |configuration| ... }
click to toggle source
Generates a new configuration
# File lib/bpm_manager.rb, line 25 def self.configure self.configuration ||= Configuration.new yield(configuration) end
server()
click to toggle source
Returns the Rest Client private resource
# File lib/bpm_manager.rb, line 36 def self.server RestClient::Resource.new(URI.encode('http' + (configuration.bpm_use_ssl ? 's' : '') + '://' + configuration.bpm_url + configuration.bpm_url_suffix), :user => configuration.bpm_username, :password => configuration.bpm_password, :headers => {:content_type => :json, :accept => :json}) end
uri(rest_service = '')
click to toggle source
Returns the URI for the server plus a suffix
# File lib/bpm_manager.rb, line 31 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