toadstool 0.0.0.4 → 0.0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bin/toadstool +11 -9
- metadata +1 -1
data/lib/bin/toadstool
CHANGED
@@ -52,18 +52,20 @@ module Toadstool
|
|
52
52
|
rescue SystemCallError
|
53
53
|
# could not chdir, no problem just return
|
54
54
|
end
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
end
|
55
|
+
|
56
|
+
no_tasks do
|
57
|
+
def in_rails_application?
|
58
|
+
File.exists?('config.ru')
|
59
|
+
end
|
61
60
|
|
62
61
|
|
63
|
-
|
64
|
-
|
62
|
+
def in_rails_application_subdirectory?(path = Pathname.new(Dir.pwd))
|
63
|
+
File.exists?(File.join(path, 'config.ru')) || !path.root? && in_rails_application_subdirectory?(path.parent)
|
64
|
+
end
|
65
65
|
end
|
66
|
-
|
66
|
+
end
|
67
|
+
|
68
|
+
|
67
69
|
|
68
70
|
# end
|
69
71
|
#
|