Sha256: 863ffdbeec462e754364ca530601740a64ad4c85d33817d1dcf65c277aa2ad53

Contents?: true

Size: 425 Bytes

Versions: 1

Compression:

Stored size: 425 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

after '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.1 lib/capistrano/env/v3/tasks/env.rake