class WRKFLO::SSHFSStep

Public Instance Methods

run() click to toggle source
# File lib/wrkflo/steps/sshfs.rb, line 9
def run
  log "Mounting  #{config.host}:#{config.remote_path}  at  #{config.local_path}"
  `sshfs #{config.host}:#{config.remote_path} #{config.local_path}`
end
unrun() click to toggle source
# File lib/wrkflo/steps/sshfs.rb, line 14
def unrun
  log "Unmounting  #{config.host}:#{config.remote_path}  from  #{config.local_path}"
  `umount #{config.local_path}`
end