Parent

Class Index [+]

Quicksearch

Capistrano::Role::DynamicServerList

This is the combination of a block, a hash of options, and a cached value.

Public Class Methods

new(block, options) click to toggle source
    # File lib/capistrano/role.rb, line 49
49:       def initialize (block, options)
50:         @block = block
51:         @options = options
52:         @cached = []
53:         @is_cached = false
54:       end

Public Instance Methods

reset!() click to toggle source

Clear the cached value

    # File lib/capistrano/role.rb, line 66
66:       def reset!
67:         @cached.clear
68:         @is_cached = false
69:       end
to_ary() click to toggle source

Convert to a list of ServerDefinitions

    # File lib/capistrano/role.rb, line 57
57:       def to_ary
58:         unless @is_cached
59:           @cached = Role::wrap_list(@block.call(@options), @options)
60:           @is_cached = true
61:         end
62:         @cached
63:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.