1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
Remote multi-server automation tool
Find a file
2013-02-08 09:15:10 +00:00
bin installation - running cap install capifies app 2013-02-01 14:51:50 +00:00
lib add before/after to dsl 2013-02-08 09:15:10 +00:00
spec Add default tasks, handle configuration 2013-02-01 17:19:00 +00:00
.gitignore initial commit 2013-02-01 09:19:14 +00:00
capistrano.gemspec Add default tasks, handle configuration 2013-02-01 17:19:00 +00:00
Gemfile initial commit 2013-02-01 09:19:14 +00:00
LICENSE.txt initial commit 2013-02-01 09:19:14 +00:00
Rakefile initial commit 2013-02-01 09:19:14 +00:00
README.md add before/after to dsl 2013-02-08 09:15:10 +00:00

Capistrano

wip - aim here is to get 'something' up and running

TODO:

  • harness rake for dsl

  • create a working capify equivalent

    • create Capfile
    • create lib/tasks/deploy
    • create config/deploy/
    • write config/deploy.rb with example configuration
  • basic configuration object

  • pass any necessary configuration from deploy.rb to SSHKit

  • basic 'capistrano/deploy' noop example

  • don't care too much about testing at this point (rspec included for my reference)

  • before/after task hooks

  • consider requiring default tasks via configuration (strategy?) rather than Capfile

  • write more default tasks

  • handle multiple stage file generation

Installation

Add this line to your application's Gemfile:

gem 'capistrano' github: 'capistrano/capistrano', branch: :wip

And then execute:

$ bundle

Capify:

$ bundle exec cap install

Usage

$ cap -vT

$ cap deploy

Before / After

Where calling on the same task name, executed in order of inclusion

# call an existing task
before :starting, :ensure_user

after :finishing, :notify


# or define in block
before :starting, :ensure_user do
  #
end

after :finishing, :notify do
  #
end