# File lib/capistrano/task_definition.rb, line 9 def initialize(name, namespace, options={}, &block) @name, @namespace, @options = name, namespace, options @desc = @options.delete(:desc) @on_error = options.delete(:on_error) @max_hosts = options[:max_hosts] && options[:max_hosts].to_i @body = block or raise ArgumentError, "a task requires a block" @servers = nil end