Skip to content

Commit

Permalink
fix Psych::DisallowedClass issue on ruby 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorntrondsen committed May 20, 2024
1 parent 42586a4 commit 65adad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/tasks/deploy-lock.rake
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def fetch_deploy_lock
on roles(fetch(:deploy_lock_roles)), in: :parallel do |host|
if test("[ -f #{fetch(:deploy_lock_file)} ]")
output = capture "cat #{fetch(:deploy_lock_file)}"
set :deploy_lock, YAML.load(output)
set :deploy_lock, YAML.load(output, permitted_classes: [Time, Symbol])
else
# no deploy lock was found on server
next
Expand Down

0 comments on commit 65adad5

Please sign in to comment.