Glenn Y. Rolland
e4f717c7a3
git-svn-id: https://websvn.glenux.net/svn/Upoc/sshfs-mapper/trunk@1516 eaee96b3-f302-0410-b096-c6cfd47f7835
37 lines
500 B
Ruby
Executable file
37 lines
500 B
Ruby
Executable file
#!/usr/bin/ruby
|
|
# vim: set ts=2 sw=2 :
|
|
|
|
$DEBUG = true
|
|
$VERBOSE = true
|
|
|
|
require 'config'
|
|
require 'map'
|
|
|
|
module SshfsMapper
|
|
class SshfsMapper
|
|
def initialize()
|
|
@active_maps = nil
|
|
puts "-- sshfs-mapper --"
|
|
conf = Config.new
|
|
conf.parseCmd ARGV
|
|
@active_maps = conf.parseFile
|
|
puts conf
|
|
end
|
|
|
|
|
|
def run()
|
|
if @active_maps.nil? then
|
|
return
|
|
end
|
|
@active_maps.each do |map|
|
|
map.connect()
|
|
end
|
|
puts "--run"
|
|
end
|
|
|
|
end
|
|
end
|
|
|
|
app = SshfsMapper::SshfsMapper.new
|
|
app.run
|
|
|