client/lib/deltacloud/client/models/driver.rb
# Method to check if given credentials can be used to authorize
# connection to current provider:
#
# client.driver(:ec2)['us-west-1'].valid_credentials? 'user', 'password'
#
# - api_user -> API key
# - api_password -> API secret
#
Method to check if given credentials can be used to authorize
connection to current provider.



> API key
api_password -> API secret
Method to check if given credentials can be used to authorize connection to current provider . > API key api_password - > API secret
def valid_credentials?(api_user, api_password)
        unless @client
          raise error.new('Please use driver("ec2")[API_PROVIDER].valid_credentials?')
        end
        @client.use(@client.current_driver, api_user, api_password, @name).valid_credentials?
      end
def valid_credentials? ( api_user , api_password ) unless @client raise error . new ( 'Please use driver("ec2")[API_PROVIDER].valid_credentials?' ) end @client . use ( @client . current_driver , api_user , api_password , @name ) . valid_credentials? end
Method to check if given credentials can be used to authorize
connection to current provider:
Method to check if given credentials can be used to authorize connection to current provider :
api_user
<not_specific>
api_password
<not_specific>