aboutsummaryrefslogtreecommitdiff
path: root/drum
diff options
context:
space:
mode:
Diffstat (limited to 'drum')
-rwxr-xr-xdrum4
1 files changed, 2 insertions, 2 deletions
diff --git a/drum b/drum
index f9b7739..a90ef99 100755
--- a/drum
+++ b/drum
@@ -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