Module: DeltacloudVM::Client::Methods::BackwardCompatibility::ClassMethods

Included in:
DeltacloudVM::Client
Defined in:
lib/deltacloud_vm/client/methods/backward_compatiblity.rb

Instance Method Summary collapse

Instance Method Details

#valid_credentials?(api_user, api_password, api_url, opts = {}) ⇒ Boolean

Returns:

  • (Boolean)


58
59
60
61
62
63
64
65
66
# File 'lib/deltacloud_vm/client/methods/backward_compatiblity.rb', line 58

def valid_credentials?(api_user, api_password, api_url, opts={})
  args = {
    :api_user => api_user,
    :api_password => api_password,
    :url => api_url
  }
  args.merge!(:providers => opts[:provider]) if opts[:provider]
  DeltacloudVM::Client::Connection.new(args).valid_credentials?
end