From the new ruby release (3.2.0), Dir.exists? and File.exists? have been removed.
So exists? method is not working anymore.
Example:
➜ dpl --provider=scalingo --app=$SCALINGO_APP_NAME --api-token=$SCALINGO_API_TOKEN --region=$SCALINGO_REGION --branch=refs/heads/master
Support for deployments to Scalingo is in **alpha**. Please see [Maturity Levels](https://github.com/travis-ci/dpl/#maturity-levels) for details.
$ timeout 60 ./scalingo keys-remove dpl_tmp_key
timeout: failed to run command './scalingo': No such file or directory
Failed to remove the ssh key.
From ruby doc File.exist? should be used instead.
From the new ruby release (3.2.0),
Dir.exists?andFile.exists?have been removed.So exists? method is not working anymore.
Example:
From ruby doc
File.exist?should be used instead.