Skip to content

Commit

Permalink
Ruby 3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsc committed Mar 7, 2023
1 parent 48e2ad9 commit 405cd49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions support/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ def framework_config(app)
def get_app
ENV['app'].tap do |app|
raise "Specify which app you want to run using app=path" if app.nil?
raise "#{app} not found" unless File.exists?("frameworks/#{app}")
raise "#{app} not found" unless File.exist?("frameworks/#{app}")
end
end

def get_keys
unless File.exists?("keys.yml")
unless File.exist?("keys.yml")
raise "Create a keys.yml file, see the readme"
end
YAML.load_file("keys.yml")
Expand All @@ -66,7 +66,7 @@ def write_appsignal_config(app, frontend_key, revision, uri)
@revision = revision
@uri = uri
puts "Writing appsignal with #{@frontend_key} - #{@revision} - #{@uri}"
filename = if File.exists?("frameworks/#{app}/tsconfig.json")
filename = if File.exist?("frameworks/#{app}/tsconfig.json")
"appsignal.ts"
else
"appsignal.js"
Expand Down

0 comments on commit 405cd49

Please sign in to comment.