Class: RunTemplateGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/rails/generators/run_template/run_template_generator.rb

Instance Method Summary collapse

Instance Method Details

#apply_templateObject



6
7
8
9
10
11
12
# File 'lib/rails/generators/run_template/run_template_generator.rb', line 6

def apply_template
  path = template_path
  unless path =~ /^https?:\/\//
    path = File.expand_path(path, Dir.pwd)
  end
  apply path
end