Skip to content

Commit

Permalink
🐛 Fix undefined method exists? error (#1524)
Browse files Browse the repository at this point in the history
Fixes an error where `trellis up` or `vagrant up` would fail in machines
running Ruby on version 3.2 or higher due to the usage of a removed
method.
  • Loading branch information
1dkfa authored Jun 13, 2024
1 parent c46ae4f commit 80a491e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/trellis/vagrant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def update_ssh_config(main_hostname)
config_file = File.expand_path('~/.ssh/config')
vagrant_ssh_config = `vagrant ssh-config --host #{main_hostname}`.chomp

if File.exists?(config_file)
if File.exist?(config_file)
FileUtils.cp(config_file, "#{config_file}.trellis_backup")
ssh_config = File.read(config_file)

Expand Down

0 comments on commit 80a491e

Please sign in to comment.