class Synqa::BaseSshScp
Base SSH/SCP implementation
Attributes
host[R]
user[R]
userAtHost[R]
Public Instance Methods
close()
click to toggle source
# File lib/synqa.rb, line 206 def close # by default do nothing - close any cached connections end
deleteDirectory(dirPath, dryRun)
click to toggle source
delete remote directory (if dryRun is false) using “rm -r”
# File lib/synqa.rb, line 211 def deleteDirectory(dirPath, dryRun) ssh("rm -r #{dirPath}", dryRun) end
deleteFile(filePath, dryRun)
click to toggle source
delete remote file (if dryRun is false) using “rm”
# File lib/synqa.rb, line 216 def deleteFile(filePath, dryRun) ssh("rm #{filePath}", dryRun) end
setUserAtHost(userAtHost)
click to toggle source
# File lib/synqa.rb, line 201 def setUserAtHost(userAtHost) @userAtHost = userAtHost @user, @host = @userAtHost.split("@") end