lib/fezzik/base.rb in fezzik-0.7.3 vs lib/fezzik/base.rb in fezzik-0.7.4
- old
+ new
@@ -9,11 +9,11 @@
puts "Loading Fezzik tasks from #{@options[:tasks]}"
Dir[File.join(Dir.pwd, "#{@options[:tasks]}/**/*.rake")].sort.each { |lib| import lib }
end
end
- def self.destination(name, &block)
- block.call if name == @target_destination
+ def self.destination(*names, &block)
+ block.call if names.include?(@target_destination)
end
def self.target_destination
@target_destination ||= nil
end