Class: Capistrano::Role

Class | Capistrano::Role
In: | lib/capistrano/role.rb
Parent: | Object

### Methods

<< clear dynamic_servers each empty? include? new push servers to_ary wrap_list wrap_server

### Included Modules

Enumerable

### Classes and Modules

Class Capistrano::Role::DynamicServerList

### Public Class methods

new(*list)

### Protected Class methods

wrap_list(*list)

Turns a list, or something resembling a list, into a properly-formatted ServerDefinition list. Keep an eye on this one — it‘s entirely too magical for its own good. In particular, if ServerDefinition ever inherits from Array, this will break.

wrap_server(item, options)

Wraps a string in a ServerDefinition, if it isn‘t already. This and wrap_list should probably go in ServerDefinition in some form.

### Public Instance methods

<<(*list)

Alias for push

clear()
each(&block)
empty?()
include?(server)
push(*list)
servers()
to_ary()

Alias for servers

### Protected Instance methods

dynamic_servers()

Attribute reader for the cached results of executing the blocks in turn

[Validate]