lib/rake/funnel/tasks/quick_template.rb in rake-funnel-0.0.6.pre vs lib/rake/funnel/tasks/quick_template.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 QuickTemplate < Rake::TaskLib
+ include Rake::Funnel::Support
+
attr_accessor :name, :search_pattern, :context
def initialize(name = :template)
@name = name
@@ -33,10 +35,10 @@
self
end
def templates
- Rake::Funnel::Support::Finder.new(search_pattern, self, 'No templates found.')
+ Finder.new(search_pattern, self, 'No templates found.')
end
def result_filename(template)
template.ext
end