sshfs-mapper: clean-up config.rb
git-svn-id: https://websvn.glenux.net/svn/Upoc/sshfs-mapper/trunk@1517 eaee96b3-f302-0410-b096-c6cfd47f7835
This commit is contained in:
parent
e4f717c7a3
commit
4d5d325ab7
1 changed files with 1 additions and 2 deletions
|
@ -39,13 +39,12 @@ module SshfsMapper
|
||||||
end
|
end
|
||||||
|
|
||||||
def parseFile( &blk )
|
def parseFile( &blk )
|
||||||
puts "Parsing config #{@config_dir}/config"
|
puts "Config: #{@config_dir}/config"
|
||||||
|
|
||||||
maps = []
|
maps = []
|
||||||
Find.find( @config_dir ) do |path|
|
Find.find( @config_dir ) do |path|
|
||||||
if File.file?( path )
|
if File.file?( path )
|
||||||
if File.basename( path ) =~ /.map$/
|
if File.basename( path ) =~ /.map$/
|
||||||
puts "* #{File.basename( path )}"
|
|
||||||
begin
|
begin
|
||||||
map = Map.new( path )
|
map = Map.new( path )
|
||||||
map.parse()
|
map.parse()
|
||||||
|
|
Loading…
Reference in a new issue