Class: Flotte::Command::SSH

Inherits:
Object
  • Object
show all
Defined in:
lib/flotte/command/ssh.rb

Class Method Summary collapse

Class Method Details

.wrap(host, command) ⇒ Object



4
5
6
# File 'lib/flotte/command/ssh.rb', line 4

def self.wrap(host, command)
  ["ssh", "-t", host] << Array(command).map(&:to_s).join(" ")
end