From e9c3067b306fffe6e31804775e569f051f59a0cd Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Sun, 13 Feb 2022 20:24:25 +0100 Subject: [PATCH] Use string keys for Capistrano configuration --- config/deploy/production.rb | 3 ++- config/deploy/staging.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/deploy/production.rb b/config/deploy/production.rb index 718752f..6302495 100644 --- a/config/deploy/production.rb +++ b/config/deploy/production.rb @@ -1,3 +1,4 @@ +require 'yaml' # server-based syntax # ====================== # Defines a single server with a list of roles and multiple properties. @@ -15,7 +16,7 @@ end set :deploy_to, config.fetch("deploy_to") set :branch, "production" -if config.has_key?(:keep_releases) +if config.has_key?("keep_releases") set :keep_releases, config.fetch("keep_releases").to_i end diff --git a/config/deploy/staging.rb b/config/deploy/staging.rb index ec380ca..ed373a4 100644 --- a/config/deploy/staging.rb +++ b/config/deploy/staging.rb @@ -16,7 +16,7 @@ end set :deploy_to, config.fetch("deploy_to") set :branch, "staging" -if config.has_key?(:keep_releases) +if config.has_key?("keep_releases") set :keep_releases, config.fetch("keep_releases").to_i end