Method: Cisco::Client::GRPC.validate_args

Defined in:
lib/cisco_node_utils/client/grpc/client.rb

.validate_args(**kwargs) ⇒ Object



66
67
68
69
70
71
72
73
74
# File 'lib/cisco_node_utils/client/grpc/client.rb', line 66

def self.validate_args(**kwargs)
  super
  base_msg = 'gRPC client creation failure: '
  # Connection to remote system - username and password are required
  fail TypeError, base_msg + 'username must be specified' \
    if kwargs[:username].nil?
  fail TypeError, base_msg + 'password must be specified' \
    if kwargs[:password].nil?
end