Method: Capistrano::Configuration#role
- Defined in:
- lib/capistrano/configuration.rb
#role(name, hosts, options = {}) ⇒ Object
65 66 67 68 69 70 71 |
# File 'lib/capistrano/configuration.rb', line 65 def role(name, hosts, ={}) if name == :all raise ArgumentError, "#{name} reserved name for role. Please choose another name" end servers.add_role(name, hosts, ) end |