1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
capistrano/docs/documentation/advanced-features
Dylan Frese f76fb81fe2
Add support for adding custom filters
Users of the API may now add their own 'on'-filters by calling
Configuration#add_filter, e.g:
`Capistrano::Configuration.env.add_filter(RegionFilter.new('NE'))`.

An filter object passed into this method must respond to .filter, and
this method should accept an array of Server objects and return a subset
of this array.

Tests have been added that checks that:
  * A filter can be added without throwing an error
  * Trying to add a filter without a filter method throws a
    TypeError
  * An added filter is used to filter a list of servers
  * add_filter accepts a block, and raises an ArgumentError
    if passed both a block and an object.
2016-12-09 18:11:15 -06:00
..
console Move gh-pages site to the docs/ folder 2016-08-23 18:04:57 -07:00
custom-filters Add support for adding custom filters 2016-12-09 18:11:15 -06:00
custom-scm Make all SCMs inherit from SCM::Plugin 2016-10-26 17:45:25 -07:00
filtering Add support for adding custom filters 2016-12-09 18:11:15 -06:00
host-filtering Move gh-pages site to the docs/ folder 2016-08-23 18:04:57 -07:00
ignoring Move gh-pages site to the docs/ folder 2016-08-23 18:04:57 -07:00
overriding-capistrano-tasks Move gh-pages site to the docs/ folder 2016-08-23 18:04:57 -07:00
properties Move gh-pages site to the docs/ folder 2016-08-23 18:04:57 -07:00
property-filtering Move gh-pages site to the docs/ folder 2016-08-23 18:04:57 -07:00
ptys Move gh-pages site to the docs/ folder 2016-08-23 18:04:57 -07:00
remote-file Move gh-pages site to the docs/ folder 2016-08-23 18:04:57 -07:00
role-filtering Move gh-pages site to the docs/ folder 2016-08-23 18:04:57 -07:00
ssh-kit Move gh-pages site to the docs/ folder 2016-08-23 18:04:57 -07:00
validation-of-variables Move gh-pages site to the docs/ folder 2016-08-23 18:04:57 -07:00