From 4d61989df5f3c248263213f25f8510d03c9f9038 Mon Sep 17 00:00:00 2001 From: Andy Sykes Date: Tue, 26 Nov 2013 14:56:09 +0000 Subject: [PATCH] Fix role filtering documentation code examples. The role filtering documentation code samples do not format properly on the documentation website. This pull request fixes that. --- documentation/getting-started/role-filtering/index.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/documentation/getting-started/role-filtering/index.markdown b/documentation/getting-started/role-filtering/index.markdown index d3761f6e..a0b35edb 100644 --- a/documentation/getting-started/role-filtering/index.markdown +++ b/documentation/getting-started/role-filtering/index.markdown @@ -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. @@ -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. @@ -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. \ No newline at end of file