Skip to content
Permalink
Browse files

Restore compatibility with Capistrano v3

Fixes #634 #636
  • Loading branch information
benlangfeld committed Jun 14, 2016
1 parent 9a6a1ef commit 5aa0ccfa53e87bda43e92da005d781a4b5a8d5a5
Showing with 5 additions and 5 deletions.
  1. +2 −0 CHANGELOG.md
  2. +3 −5 lib/whenever/capistrano/v3/tasks/whenever.rake
@@ -1,5 +1,7 @@
### develop

* Restore compatibility with Capistrano v3; it has a bug which we have to work around [Ben Langfeld, Chris Gunther, Shohei Yamasaki]

### 0.9.6 / June 13, 2016

* Bypass symlinks when loading Capistrano v3 code, since these symlinks don't work in recent gem releases [Justin Ramos]
@@ -5,10 +5,8 @@ namespace :whenever do
on roles fetch(:whenever_roles) do |host|
args_for_host = block_given? ? args + Array(yield(host)) : args
within release_path do
with rails_env: fetch(:whenever_environment) do
with fetch(:whenever_command_environment_variables) do
execute(*args_for_host)
end
with fetch(:whenever_command_environment_variables) do
execute(*args_for_host)
end
end
end
@@ -35,7 +33,7 @@ namespace :load do
task :defaults do
set :whenever_roles, ->{ :db }
set :whenever_command, ->{ [:bundle, :exec, :whenever] }
set :whenever_command_environment_variables, ->{ {} }
set :whenever_command_environment_variables, ->{ { rails_env: fetch(:whenever_environment) } }
set :whenever_identifier, ->{ fetch :application }
set :whenever_environment, ->{ fetch :rails_env, fetch(:stage, "production") }
set :whenever_variables, ->{ "environment=#{fetch :whenever_environment}" }

0 comments on commit 5aa0ccf

Please sign in to comment.
You can’t perform that action at this time.