diff options
Diffstat (limited to 'org/env.org')
-rw-r--r-- | org/env.org | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/org/env.org b/org/env.org index 87feb912..248cf044 100644 --- a/org/env.org +++ b/org/env.org @@ -773,7 +773,7 @@ module SiSU_Info_Db def port #PGPORT ((defined? @rc['db']['postgresql']['port']) \ && ( @rc['db']['postgresql']['port'] =~/\d+/ \ - || @rc['db']['postgresql']['port'].is_a?(Fixnum))) \ + || @rc['db']['postgresql']['port'].is_a?(Integer))) \ ? @rc['db']['postgresql']['port'] : (@defaults[:postgresql_port]) end @@ -5943,10 +5943,10 @@ WOK : "#{md.opt.sisu_data_dir?}/sisu/image" images=%W[bullet_09.png arrow_next_red.png arrow_prev_red.png arrow_up_red.png] images.each do |i| #move to avoid repeated tests - if FileTest.file?("#{src}/#{i}") + if Pathname#exist?("#{src}/#{i}") FileUtils::cp("#{src}/#{i}","#{pth}/#{i}") \ - unless FileTest.file?("#{pth}/#{i}") - else STDERR.puts %{\t*WARN* did not find image - "#{i}" [#{__FILE__}:#{__LINE__}]} + unless Pathname#exist?("#{pth}/#{i}") + else STDERR.puts %{\t*WARN* did not find image - "#{i}" [#{__FILE__}:#{__LINE__}] [#{src}/#{i}]} end end pth |