lib/rake/funnel/tasks/copy.rb in rake-funnel-0.0.6.pre vs lib/rake/funnel/tasks/copy.rb in rake-funnel-0.1.0.pre

- old
+ new

@@ -1,10 +1,12 @@ require 'rake/clean' require 'rake/tasklib' module Rake::Funnel::Tasks class Copy < Rake::TaskLib + include Rake::Funnel::Support + attr_accessor :name, :source, :target def initialize(name = :copy) @name = name @@ -37,10 +39,10 @@ self end def files - Rake::Funnel::Support::Finder.new(source, self, 'No files found.').all_or_default + Finder.new(source, self, 'No files found.').all_or_default end def target_path(file) target_relative = Pathname.new(file).relative_path_from(Pathname.new(common_path)).to_s File.join(target, target_relative)