mirror of
https://github.com/Evolix/chexpire.git
synced 2024-04-27 14:30:49 +02:00
Use string keys for Capistrano configuration
This commit is contained in:
parent
f37cc2abe4
commit
e9c3067b30
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue