Class: SSHFSStep
Instance Attribute Summary
Attributes inherited from Step
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
#run ⇒ Object
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 |
#unrun ⇒ Object
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 |