diff options
Diffstat (limited to 'drum')
-rwxr-xr-x | drum | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -72,7 +72,7 @@ def entrypoint(dk) files = Dir.entries(Dir.pwd) #1. Is it a rails app? - return ["rails", "server"] if File.exists?("Gemfile") && File.read("Gemfile").downcase =~ /gem "rails"/ + return ["rails", "server"] if File.exist?("Gemfile") && File.read("Gemfile").downcase =~ /gem "rails"/ #2. Is there an executable file with the same name as the working dir? d = File.basename(Dir.pwd) r = /#{d}(\.rb)?/ @@ -113,7 +113,7 @@ parser.parse! COMMAND = ARGV.shift&.downcase -if File.exists?(OPTIONS.drumkit) +if File.exist?(OPTIONS.drumkit) DRUMKIT = Drumkit.parse_file(OPTIONS.drumkit) else DRUMKIT = Drumkit.new |