diff options
author | Nat Lasseter <user@4574.co.uk> | 2025-07-15 10:40:52 +0100 |
---|---|---|
committer | Nat Lasseter <user@4574.co.uk> | 2025-07-15 10:40:52 +0100 |
commit | 8180d8f3d4d847f8d5b191e3b6c6d643d72ae1a2 (patch) | |
tree | b255832c95c11af93fbf23f525cf2556c3d6c421 /drum | |
parent | 27ec2ed7d9b091e4d2199632403c7da3182e0bd8 (diff) |
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 |