qasim/sshfs-mapper.rb
2009-06-12 15:49:30 +00:00

34 lines
451 B
Ruby
Executable file

#!/usr/bin/ruby
require 'config'
require 'map'
module SshfsMapper
class SshfsMapper
def initialize()
@maps = nil
puts "-- sshfs-mapper --"
conf = Config.new
conf.parseCmd ARGV
@maps = conf.parseFile
puts conf
end
def run()
if @maps.nil? then
return
end
@maps.each do |map_path|
map = Map.new( map_path )
map.parse()
end
puts "--run"
end
end
end
app = SshfsMapper::SshfsMapper.new
app.run