Class: Synqa::BaseSshScp

Inherits:
Object
  • Object
show all
Defined in:
lib/synqa.rb

Overview

Base SSH/SCP implementation

Direct Known Subclasses

ExternalSshScp, InternalSshScp

Instance Method Summary collapse

Instance Method Details

#deleteDirectory(userAtHost, dirPath, dryRun) ⇒ Object

delete remote directory (if dryRun is false) using “rm -r”



200
201
202
# File 'lib/synqa.rb', line 200

def deleteDirectory(userAtHost, dirPath, dryRun)
  ssh(userAtHost, "rm -r #{dirPath}", dryRun)
end

#deleteFile(userAtHost, filePath, dryRun) ⇒ Object

delete remote file (if dryRun is false) using “rm”



205
206
207
# File 'lib/synqa.rb', line 205

def deleteFile(userAtHost, filePath, dryRun)
  ssh(userAtHost, "rm #{filePath}", dryRun)
end