Parent

Files

Class/Module Index [+]

Quicksearch

Capistrano::Command::Tree::Branch

Attributes

callback[RW]
command[RW]
condition[RW]
options[R]

Public Class Methods

new(command, options, callback) click to toggle source
# File lib/capistrano/command.rb, line 23
def initialize(command, options, callback)
  @command = command.strip.gsub(/\r?\n/, "\\\n")
  @callback = callback || Capistrano::Configuration.default_io_proc
  @options = options
  @skip = false
end

Public Instance Methods

last?() click to toggle source
# File lib/capistrano/command.rb, line 30
def last?
  options[:last]
end
match(server) click to toggle source
# File lib/capistrano/command.rb, line 42
def match(server)
  true
end
skip!() click to toggle source
# File lib/capistrano/command.rb, line 38
def skip!
  @skip = true
end
skip?() click to toggle source
# File lib/capistrano/command.rb, line 34
def skip?
  @skip
end
to_s(parallel=false) click to toggle source
# File lib/capistrano/command.rb, line 46
def to_s(parallel=false)
  if parallel && @condition
    "#{condition.inspect} :: #{command.inspect}"
  else
    command.inspect
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.