lib/pah/runner.rb in pah-0.0.20 vs lib/pah/runner.rb in pah-0.0.21
- old
+ new
@@ -1,20 +1,19 @@
module Pah
class Runner < Rails::Generators::Base
+
def partials
File.join(TEMPLATE_ROOT, 'templates')
end
def apply_n(partial_name, message = '')
- puts message.magenta
+ print message.green
in_root do
Bundler.with_clean_env do
require "#{partials}/#{partial_name}"
- "::Pah::Templates::#{partial_name.to_s.classify}".constantize.new.call
+ "::Pah::Templates::#{partial_name.to_s.classify}".constantize.new([], self.options).call
end
end
-
- puts "\n"
end
end
end