Class: Chake::Backend::Ssh

Inherits:
Backend
  • Object
show all
Defined in:
lib/chake/backend/ssh.rb

Instance Method Summary collapse

Instance Method Details

#command_runnerObject



23
24
25
# File 'lib/chake/backend/ssh.rb', line 23

def command_runner
  ['ssh', ssh_config, ssh_target].flatten.compact
end

#rsyncObject



15
16
17
# File 'lib/chake/backend/ssh.rb', line 15

def rsync
  ['rsync', rsync_ssh].flatten.compact
end

#rsync_destObject



19
20
21
# File 'lib/chake/backend/ssh.rb', line 19

def rsync_dest
  [ssh_target, node.path + '/'].join(':')
end

#scpObject



7
8
9
# File 'lib/chake/backend/ssh.rb', line 7

def scp
  ['scp', ssh_config].flatten.compact
end

#scp_destObject



11
12
13
# File 'lib/chake/backend/ssh.rb', line 11

def scp_dest
  ssh_target + ':'
end