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

Class | Capistrano::Command::Tree::ConditionBranch::Evaluator
In: | lib/capistrano/command.rb lib/capistrano/command.rb
Parent: | Object

### Methods

in? in? method_missing method_missing new new result result

### Attributes

condition | [R] |
condition | [R] |
configuration | [R] |
configuration | [R] |
server | [R] |
server | [R] |

### Public Class methods

new(config, condition, server)

[Source]

        # File lib/capistrano/command.rb, line 57
    57:           def initialize(config, condition, server)
    58:             @configuration = config
    59:             @condition = condition
    60:             @server = server
    61:           end

new(config, condition, server)

[Source]

        # File lib/capistrano/command.rb, line 57
    57:           def initialize(config, condition, server)
    58:             @configuration = config
    59:             @condition = condition
    60:             @server = server
    61:           end

### Public Instance methods

in?(role)

[Source]

        # File lib/capistrano/command.rb, line 63
    63:           def in?(role)
    64:             configuration.roles[role].include?(server)
    65:           end

in?(role)

[Source]

        # File lib/capistrano/command.rb, line 63
    63:           def in?(role)
    64:             configuration.roles[role].include?(server)
    65:           end

method_missing(sym, *args, &block)

[Source]

        # File lib/capistrano/command.rb, line 71
    71:           def method_missing(sym, *args, &block)
    72:             if server.respond_to?(sym)
    73:               server.send(sym, *args, &block)
    74:             elsif configuration.respond_to?(sym)
    75:               configuration.send(sym, *args, &block)
    76:             else
    77:               super
    78:             end
    79:           end

method_missing(sym, *args, &block)

[Source]

        # File lib/capistrano/command.rb, line 71
    71:           def method_missing(sym, *args, &block)
    72:             if server.respond_to?(sym)
    73:               server.send(sym, *args, &block)
    74:             elsif configuration.respond_to?(sym)
    75:               configuration.send(sym, *args, &block)
    76:             else
    77:               super
    78:             end
    79:           end

result()

[Source]

        # File lib/capistrano/command.rb, line 67
    67:           def result
    68:             eval(condition, binding)
    69:           end

result()

[Source]

        # File lib/capistrano/command.rb, line 67
    67:           def result
    68:             eval(condition, binding)
    69:           end

[Validate]