lib/bin/toadstool in toadstool-0.0.0.4 vs lib/bin/toadstool in toadstool-0.0.0.5

- old
+ new

@@ -50,21 +50,23 @@ exec_script_rails! unless cwd == Dir.pwd end rescue SystemCallError # could not chdir, no problem just return end - end - - # no_tasks do - def in_rails_application? - File.exists?('config.ru') - end + + no_tasks do + def in_rails_application? + File.exists?('config.ru') + end - def in_rails_application_subdirectory?(path = Pathname.new(Dir.pwd)) - File.exists?(File.join(path, 'config.ru')) || !path.root? && in_rails_application_subdirectory?(path.parent) + def in_rails_application_subdirectory?(path = Pathname.new(Dir.pwd)) + File.exists?(File.join(path, 'config.ru')) || !path.root? && in_rails_application_subdirectory?(path.parent) + end end - # end + end + + # end # # # module Toadstool \ No newline at end of file