From 8180d8f3d4d847f8d5b191e3b6c6d643d72ae1a2 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Tue, 15 Jul 2025 10:40:52 +0100 Subject: typo exists -> exist --- drum | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drum') 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 -- cgit v1.2.3