Method: Escualo::Script.delegated_options

Defined in:
lib/escualo/script.rb

.delegated_options(options) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/escualo/script.rb', line 7

def self.delegated_options(options)
  [options.hostname.try { |it| "--hostname #{it}" },
   options.username.try { |it| "--username #{it}" },
   options.password.try { |it| "--password #{it}" },
   options.ssh_key.try { |it| "--ssh-key #{it}" },
   options.ssh_port.try { |it| "--ssh-port #{it}" },
   options.trace && '--trace',
   options.verbose && '--verbose'
  ].compact.join(' ')
end