1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
Commit graph

28 commits

Author SHA1 Message Date
seenmyfate
7ca17c15c5 Prepare for 3.1 release 2013-12-20 14:35:40 +00:00
Tom Clements
20fec69f99 Merge pull request #810 from forward3d/host_filter
Add ability to filter tasks to specific servers (host filtering).
2013-12-20 05:58:09 -08:00
Hartog C. de Mik
e7a95e5872 Use an SCM object with a pluggable strategy
I've taken the responsibility for executing scm commands away from the
rake tasks and have placed them in an SCM object. This object can be
loaded with any given strategy.

A default strategy is supplied (the commands as they where in the rake
tasks)

Moved Hg to the new strategy pattern
2013-12-11 15:09:03 +01:00
Andy Sykes
a1d3bfb524 Add ability to filter tasks to specific servers (host filtering).
This commit adds the ability to control what servers are involved in an
task from the command line, or by setting an environment variable.

The filter contains a list of servers; these are the only servers that
will be involved in the task.

For example, if you had three servers defined in your configuration
(server1, server2 and server3), you could deploy to only server1 by
doing either:

    cap --hosts server1 production deploy

Or:

    HOSTS=server1 cap production deploy

Multiple servers can be specified by separating them with commas:

    cap --hosts server1,server2 production deploy
    HOSTS=server1,server2 cap production deploy

Host filtering happens after role filtering, and does not change what
roles a server will respond to.
2013-11-26 14:52:01 +00:00
Tom Clements
7b438780cc Update CHANGELOG.md 2013-11-22 16:19:30 +00:00
seenmyfate
ac95f5147b Allow roles to be fetched with an array
For the case where the array may be stored in a variable, for example:

    set :my_roles, [:app, :web]

    on roles fetch(:my_roles) do
      #
    end

This will allow https://github.com/capistrano/rails/pull/30 to be
refactored
2013-11-22 16:12:14 +00:00
Tom Clements
aa4902784c Update CHANGELOG.md 2013-11-22 13:15:13 +00:00
Tom Clements
dfe25c9436 Merge pull request #781 from mikespokefire/feature/fix-symlink-roles
Symlinks should happen on all roles, not just app
2013-11-22 04:59:44 -08:00
Tom Clements
f785ddfb5d Merge pull request #796 from forward3d/command_line_role_filter
Add a command line option to control role filtering
2013-11-22 04:59:20 -08:00
Russell
443e3ebeb3 Support servers with same host but different ports
Allow configuration of multiple servers that share a hostname
but have different ports, as described in issue #784.
2013-11-22 10:00:15 +00:00
Andy Sykes
5a82cdb434 Add a command line option to control role filtering
The functionality to filter the executing tasks by role (i.e. deploying
only to servers that match the role you specify) already exists. It can
specified either by using the following in your deployment config:

    set :filter, :roles => %w{app web}

Or by setting `ENV['ROLES']`:

    ROLES=app,web cap production deploy

This commit adds a command line switch to set the role filter, which
avoids polluting ENV:

    cap --roles=app,web production deploy
2013-11-20 14:17:15 +00:00
Michael Smith
6fd882c59e Symlink tasks should happen on all roles, not just app
When deploying to multiple different roles, symlinks currently only
happen on the app role. When you then try and precompile assets on the
web role for example, the symlinks that it requires to link to certain
config files may not be there. This fix changes the default symlink
behaviour to happen on _all_ roles as this seems like a more sensible
default.
2013-11-14 09:18:08 +00:00
Lee Hambley
5e1dba2a23 Changelog notes for #717 related to 6e9863cdc 2013-11-13 09:12:04 +01:00
Tom Clements
321327f741 Update CHANGELOG.md 2013-11-02 11:14:15 +00:00
seenmyfate
22a98f30a6 Merge branch '3.1.x'
Conflicts:
	CHANGELOG.md
	README.md
	lib/capistrano/tasks/git.rake
	lib/capistrano/templates/deploy.rb.erb
2013-11-02 11:08:10 +00:00
Tom Clements
efb560e9d2 Update CHANGELOG.md 2013-11-02 10:38:16 +00:00
Tom Clements
7c9de568b3 Update CHANGELOG.md 2013-11-01 21:57:20 +00:00
Kir Shatrov
79ab495391 Changelog entries for 3.1.x release 2013-11-01 18:35:23 +04:00
Lee Hambley
f6d7614244 Update CHANGELOG.md 2013-10-14 09:05:34 +02:00
Lee Hambley
14153717a5 Preparing Release v3.0.0 2013-10-08 10:21:51 +02:00
Lee Hambley
9fd628eab8 Preparing Release v3.0.0.pre14 2013-08-03 12:00:29 +02:00
Lee Hambley
6789ee6dd7 Preparing Release 3.0.0.pre13 2013-07-14 21:27:11 +02:00
Lee Hambley
4108d1a14d Preparing Release 3.0.0.pre12 2013-07-09 18:13:39 +02:00
Lee Hambley
96e76562c5 Preparing Release 3.0.0.pre11 2013-07-09 09:04:17 +02:00
Lee Hambley
e990e03009 Preparing Release 3.0.0.pre10 2013-07-09 09:04:16 +02:00
Lee Hambley
8fee3f6869 Preparing Release 3.0.0.pre9 2013-07-05 16:23:32 +02:00
Lee Hambley
aa600e555d Preparing Release 3.0.0.pre8 2013-07-04 16:53:40 +02:00
Lee Hambley
df93237dee Preparing 3.0.0.pre7 2013-07-04 09:43:51 +02:00