Sha256: 38692f5e9060bfd187a724cd05c206ef73f29af8a1ccb916e40f977768f5eade
Contents?: true
Size: 534 Bytes
Versions: 1
Compression:
Stored size: 534 Bytes
Contents
require "cap-chown/version" Capistrano::Configuration.instance(:must_exist).load do namespace :deploy do desc "Chown all files in release to application account" task :chown do old_sudo = sudo set :sudo, "sudo" if exists?(:app_user) && exists?(:app_group) run "#{sudo} chown -R #{app_user}:#{app_group} #{deploy_to}" else run "#{sudo} chown -R --reference=#{deploy_to} #{deploy_to}" end set :sudo, old_sudo end end after 'deploy:cleanup', 'deploy:chown' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cap-chown-0.0.6 | lib/cap-chown.rb |