Class: SSHFSStep

Inherits:
Step
  • Object
show all
Defined in:
lib/wrkflo/steps/sshfs.rb

Instance Attribute Summary

Attributes inherited from Step

#config, #name, #project

Instance Method Summary collapse

Methods inherited from Step

add_alias, create, #initialize, #log

Constructor Details

This class inherits a constructor from Step

Instance Method Details

#runObject



4
5
6
7
# File 'lib/wrkflo/steps/sshfs.rb', line 4

def run
  log "Mounting  #{config['host']}:#{config['remote_path']}  at  #{config['local_path']}"
  `sshfs #{config['host']}:#{config['remote_path']} #{config['local_path']}`
end

#unrunObject



9
10
11
12
# File 'lib/wrkflo/steps/sshfs.rb', line 9

def unrun
  log "Unmounting  #{config['host']}:#{config['remote_path']}  from  #{config['local_path']}"
  `umount #{config['local_path']}`
end