lib/generators/ahoy/base.rb in rails-ahoy-0.0.2 vs lib/generators/ahoy/base.rb in rails-ahoy-0.0.3
- old
+ new
@@ -1,10 +1,16 @@
+require 'generators/ahoy/base'
+
module Ahoy
module Initialize
def root
File.dirname(__FILE__)
end
+
+ def temp_dir
+ File.join(File.dirname(__FILE__), 'tmp/')
+ end
end
module Generator
extend Initialize
@@ -13,12 +19,11 @@
@source_root ||= File.join(File.dirname(__FILE__), 'templates')
end
private
- def defaults(value)
- puts '-' * 100
- puts "Default: #{value}"
+ def question(type, &block)
+ Ahoy::QuestionHelper.question(type, &block)
end
end
end
end