Skip to content

Commit

Permalink
Merge pull request capistrano#47 from forward3d/fix_role_filtering
Browse files Browse the repository at this point in the history
Fix role filtering documentation code examples.
  • Loading branch information
leehambley committed Nov 26, 2013
2 parents 23a6d0b + 4d61989 commit 075142c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions documentation/getting-started/role-filtering/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ There are three ways to specify the role filter.
Capistrano will read the role filter from the environment variable `ROLES`
if it is set. You can set it inline:

{% prism bash %}
ROLES=app,web cap production deploy
{% endprism %}

Specify multiple roles by separating them with a comma.

Expand All @@ -36,7 +38,9 @@ Specify multiple roles by separating them with a comma.
You can set the role filter inside your deploy configuration. For example,
you can set the following inside `config/deploy.rb`:

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

Note that you specify the filter as an array rather than as a comma-separated
list of roles when using this method.
Expand All @@ -46,7 +50,9 @@ list of roles when using this method.
In a similar way to using the environment variable, you can set the role
filter by specifying it as a command line argument to `cap`:

{% prism bash %}
cap --roles=app,web production deploy
{% endprism %}

Like the environment variable method, specify multiple roles by separating them
with a comma.

0 comments on commit 075142c

Please sign in to comment.