Sha256: c842ca5e36bddc890553ddf5dddc16eb69c52afa2b793b3ad12d69f225fccc6d

Contents?: true

Size: 328 Bytes

Versions: 4

Compression:

Stored size: 328 Bytes

Contents

namespace :staff_bar do
  desc "Place a BRANCH file with the current branch in the current release path"
  task :set_current_branch do
    on roles(:app) do
      within release_path do
        execute :echo, "\"#{fetch(:branch)}\" >> BRANCH"
      end
    end
  end
end

after 'deploy:finished', 'staff_bar:set_current_branch'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
staff_bar-0.3.0 lib/staff_bar/capistrano/tasks/staff_bar.rake
staff_bar-0.2.0 lib/staff_bar/capistrano/tasks/staff_bar.rake
staff_bar-0.1.1 lib/staff_bar/capistrano/tasks/staff_bar.rake
staff_bar-0.1.0 lib/staff_bar/capistrano/tasks/staff_bar.rake