Sha256: d4f4f9e007a5f4698ee8cd7bfb1a118d09484c25aea133c9f794ff23c06b03ff
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
namespace :capenv do desc 'copy .env to release_path' task :copy do on roles(:all) do upload! StringIO.new(Capistrano::Env.to_s), "#{release_path}/#{Capistrano::Env.filename}" end end task :set_envs do set :default_environment, Capistrano::Env.envs end end stages.each do |stage| after stage, 'capenv:set_envs' end before 'deploy:updated', 'capenv:copy' before 'deploy:restart', 'capenv:copy'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-env-0.3.2 | lib/capistrano/env/v3/tasks/env.rake |