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

Version Path
ndr_dev_support-5.4.5 lib/ndr_dev_support/capistrano/revision_logger.rb
ndr_dev_support-5.4.4 lib/ndr_dev_support/capistrano/revision_logger.rb
ndr_dev_support-5.4.3 lib/ndr_dev_support/capistrano/revision_logger.rb
ndr_dev_support-5.4.2 lib/ndr_dev_support/capistrano/revision_logger.rb
ndr_dev_support-5.4.1 lib/ndr_dev_support/capistrano/revision_logger.rb
ndr_dev_support-5.4.0 lib/ndr_dev_support/capistrano/revision_logger.rb
ndr_dev_support-5.3.1 lib/ndr_dev_support/capistrano/revision_logger.rb
ndr_dev_support-5.3.0 lib/ndr_dev_support/capistrano/revision_logger.rb
ndr_dev_support-5.2.0 lib/ndr_dev_support/capistrano/revision_logger.rb
ndr_dev_support-5.1.0 lib/ndr_dev_support/capistrano/revision_logger.rb
ndr_dev_support-5.0.1 lib/ndr_dev_support/capistrano/revision_logger.rb
ndr_dev_support-5.0.0 lib/ndr_dev_support/capistrano/revision_logger.rb
ndr_dev_support-4.2.1 lib/ndr_dev_support/capistrano/revision_logger.rb
ndr_dev_support-4.2.0 lib/ndr_dev_support/capistrano/revision_logger.rb
ndr_dev_support-4.1.3 lib/ndr_dev_support/capistrano/revision_logger.rb
ndr_dev_support-4.1.2 lib/ndr_dev_support/capistrano/revision_logger.rb
ndr_dev_support-4.1.1 lib/ndr_dev_support/capistrano/revision_logger.rb
ndr_dev_support-4.1.0 lib/ndr_dev_support/capistrano/revision_logger.rb
ndr_dev_support-4.0.0 lib/ndr_dev_support/capistrano/revision_logger.rb