Sha256: 16edc146d0fe3a1f4a2bb1eadd268e5532416320e70d5467b5951198b927aeaa
Contents?: true
Size: 561 Bytes
Versions: 59
Compression:
Stored size: 561 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do namespace :ndr_dev_support do desc 'Append to the log of deployments the user and revision.' task :log_deployment, except: { no_release: true } do name = fetch(:deployer_name, capture('id -un')) log = File.join(shared_path, 'revisions.log') msg = "[#{Time.now}] #{name} deployed #{latest_revision}" run "(test -e #{log} || (touch #{log} && chmod 664 #{log})) && echo #{msg} >> #{log};" end end after 'deploy:update_code', 'ndr_dev_support:log_deployment' end
Version data entries
59 entries across 59 versions & 1 rubygems