lib/process/cloud/process/connection.rb in lorj_cloud-0.1.0 vs lib/process/cloud/process/connection.rb in lorj_cloud-0.1.1

- old
+ new

@@ -21,13 +21,13 @@ # Connection process code class CloudProcess def connect(sCloudObj, hParams) ssl_error_obj = SSLErrorMgt.new # Retry object - PrcLib.debug("%s:%s Connecting to '%s' "\ - "- Project '%s'", - self.class, sCloudObj, config[:provider], hParams[:tenant]) + PrcLib.debug("%s:%s Connecting to '%s' - Project '%s'", + self.class, sCloudObj, config[:provider], + hParams['credentials#tenant']) begin controller_connect(sCloudObj) rescue => e retry unless ssl_error_obj.error_detected(e.message, e.backtrace, e) @@ -45,48 +45,45 @@ # in your provider class. # object to get list of services # Defines Process handler to call define_obj(:services, - :create_e => :connect ) - obj_needs :data, :auth_uri - obj_needs :data, :account_id - obj_needs :data, :account_key - obj_needs :data, :tenant + obj_needs :data, 'credentials#auth_uri' + obj_needs :data, 'credentials#account_id' + obj_needs :data, 'credentials#account_key' + obj_needs :data, 'credentials#tenant' undefine_attribute :id # Do not return any predefined ID undefine_attribute :name # Do not return any predefined NAME end # compute_connection class Lorj::BaseDefinition define_obj(:compute_connection, - :create_e => :connect # Will call ForjProcess connect ) - obj_needs :data, :account_id - obj_needs :data, :account_key - obj_needs :data, :auth_uri - obj_needs :data, :tenant - obj_needs :data, :compute + obj_needs :data, 'credentials#account_id' + obj_needs :data, 'credentials#account_key' + obj_needs :data, 'credentials#auth_uri' + obj_needs :data, 'credentials#tenant' + obj_needs :data, 'services#compute' undefine_attribute :id # Do not return any predefined ID undefine_attribute :name # Do not return any predefined NAME end # network_connection class Lorj::BaseDefinition define_obj(:network_connection, - :create_e => :connect ) - obj_needs :data, :account_id - obj_needs :data, :account_key - obj_needs :data, :auth_uri - obj_needs :data, :tenant - obj_needs :data, :network + obj_needs :data, 'credentials#account_id' + obj_needs :data, 'credentials#account_key' + obj_needs :data, 'credentials#auth_uri' + obj_needs :data, 'credentials#tenant' + obj_needs :data, 'services#network' undefine_attribute :id # Do not return any predefined ID undefine_attribute :name # Do not return any predefined NAME end