Sha256: ff75f9c5b90bc19544557fb7ae102dc6c9a221b6077045773cf45d9caf3ca0d0
Contents?: true
Size: 432 Bytes
Versions: 8
Compression:
Stored size: 432 Bytes
Contents
module Pah class Runner < Rails::Generators::Base def partials File.join(TEMPLATE_ROOT, 'templates') end def apply_n(partial_name, message = '') print message.green in_root do Bundler.with_clean_env do require "#{partials}/#{partial_name}" "::Pah::Templates::#{partial_name.to_s.classify}".constantize.new([], self.options).call end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems