remove Dir.exists? for ruby 1.8 compat.
authorelijah <elijah@riseup.net>
Wed, 13 Feb 2013 08:31:35 +0000 (00:31 -0800)
committerelijah <elijah@riseup.net>
Wed, 13 Feb 2013 08:31:35 +0000 (00:31 -0800)
lib/site_mount_point.rb

index 3cc9cef..75661ba 100644 (file)
@@ -59,11 +59,11 @@ class SiteMountPoint
       else
         directory = File.expand_path(dir_source, File.dirname(site_config.file_path))
       end
-      if Dir.exists?(directory)
+      if File.directory?(directory)
         break
       end
     end
-    if Dir.exists?(directory)
+    if File.directory?(directory)
       return directory
     else
       raise 'FATAL ERROR: could find any of %s' % directory_source.join(', ')