Object
# File lib/capistrano/callback.rb, line 5 def initialize(source, options={}) @source = source @options = options @only = Array(options[:only]).map { |v| v.to_s } @except = Array(options[:except]).map { |v| v.to_s } end
# File lib/capistrano/callback.rb, line 12 def applies_to?(task) if task && only.any? return only.include?(task.fully_qualified_name) elsif task && except.any? return !except.include?(task.fully_qualified_name) else return true end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.