Skip to content

Instantly share code, notes, and snippets.

@corny
Created November 14, 2013 01:31
Show Gist options
  • Select an option

  • Save corny/7459729 to your computer and use it in GitHub Desktop.

Select an option

Save corny/7459729 to your computer and use it in GitHub Desktop.

Revisions

  1. corny created this gist Nov 14, 2013.
    14 changes: 14 additions & 0 deletions git.cap
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    # Save this file as lib/capistrano/tasks/git.cap

    namespace :git do
    desc 'Copy repo to releases'
    task create_release: :'git:update' do
    on roles(:all) do
    with fetch(:git_environmental_variables) do
    within repo_path do
    execute :git, :clone, '-b', fetch(:branch), '--recursive', '.', release_path
    end
    end
    end
    end
    end