Parent

Included Modules

Class Index [+]

Quicksearch

Capistrano::Command::Tree

Attributes

configuration[R]
branches[R]
fallback[R]

Public Class Methods

new(config) click to toggle source
     # File lib/capistrano/command.rb, line 98
 98:       def initialize(config)
 99:         @configuration = config
100:         @branches = []
101:         yield self if block_given?
102:       end

Public Instance Methods

branches_for(server) click to toggle source
     # File lib/capistrano/command.rb, line 112
112:       def branches_for(server)
113:         seen_last = false
114:         matches = branches.select do |branch|
115:           success = !seen_last && !branch.skip? && branch.match(server)
116:           seen_last = success && branch.last?
117:           success
118:         end
119: 
120:         matches << fallback if matches.empty? && fallback
121:         return matches
122:       end
each() click to toggle source
     # File lib/capistrano/command.rb, line 124
124:       def each
125:         branches.each { |branch| yield branch }
126:         yield fallback if fallback
127:         return self
128:       end
else(command, &block) click to toggle source
     # File lib/capistrano/command.rb, line 108
108:       def else(command, &block)
109:         @fallback = Branch.new(command, {}, block)
110:       end
when(condition, command, options={}, &block) click to toggle source
     # File lib/capistrano/command.rb, line 104
104:       def when(condition, command, options={}, &block)
105:         branches << ConditionBranch.new(configuration, condition, command, options, block)
106:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.