Class: Capistrano::Command::Tree::ConditionBranch

Inherits:
Branch
  • Object
show all
Defined in:
lib/capistrano/command.rb

Defined Under Namespace

Classes: Evaluator

Instance Attribute Summary collapse

Attributes inherited from Branch

#callback, #command, #condition, #options

Instance Method Summary collapse

Methods inherited from Branch

#last?, #skip!, #skip?, #to_s

Constructor Details

#initialize(configuration, condition, command, options, callback) ⇒ ConditionBranch

Returns a new instance of ConditionBranch.



86
87
88
89
90
# File 'lib/capistrano/command.rb', line 86

def initialize(configuration, condition, command, options, callback)
  @configuration = configuration
  @condition = condition
  super(command, options, callback)
end

Instance Attribute Details

#configurationObject

Returns the value of attribute configuration.



56
57
58
# File 'lib/capistrano/command.rb', line 56

def configuration
  @configuration
end

Instance Method Details

#match(server) ⇒ Object



92
93
94
# File 'lib/capistrano/command.rb', line 92

def match(server)
  Evaluator.new(configuration, condition, server).result
end