1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
capistrano/spec
seenmyfate 97d0ddf0ae Introduce no_release server option
In order to provide a way for a server to perform tasks as part of a
deploy but without being involved in the standard deploy flow, all
included tasks will now prefer `release_roles` over `roles`.  For
example:

    on release_roles :all do
      #
    end

This behaviour is implemented using `exclude`, a new option when
selecting roles.  `release_roles` is equivalent to:

    on roles :all, exclude: :no_release do
      #
    end

Any server defined with `no_release: true` will be excluded from these
tasks:

    server 'localhost', roles: %w{db}, no_release: true

`exclude` can also be used in user defined tasks against any attribute, for example:

    server 'localhost', roles: %w{app web}, inactive: true

    on roles :app, exclude: :inactive do
      #
    end

This commit resolves #686
2013-10-18 11:25:59 +01:00
..
integration Introduce no_release server option 2013-10-18 11:25:59 +01:00
lib Introduce no_release server option 2013-10-18 11:25:59 +01:00
support Default stage template cleanup 2013-10-17 14:09:27 +02:00
integration_spec_helper.rb Add integration tests for deploy task 2013-06-16 13:08:15 +01:00
spec_helper.rb Integration tests with Vagrant and Cucumber 2013-09-27 11:45:55 +01:00