Class: Synqa::BaseSshScp
- Inherits:
-
Object
- Object
- Synqa::BaseSshScp
- Defined in:
- lib/synqa.rb
Overview
Base SSH/SCP implementation
Direct Known Subclasses
Instance Method Summary collapse
-
#deleteDirectory(userAtHost, dirPath, dryRun) ⇒ Object
delete remote directory (if dryRun is false) using “rm -r”.
-
#deleteFile(userAtHost, filePath, dryRun) ⇒ Object
delete remote file (if dryRun is false) using “rm”.
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 |