Module: Pasqual::Arglist

Defined in:
lib/pasqual/arglist.rb

Class Method Summary collapse

Class Method Details

.args(username, password, host, port, name) ⇒ Object



5
6
7
8
9
10
# File 'lib/pasqual/arglist.rb', line 5

def self.args(username, password, host, port, name)
  list = ['-h', host, '-U', username, '-p', port.to_s]
  list += ['-w'] if password.nil?

  list + [name]
end