Sha256: ade5218a0aaffe51d56a5a3360b07b6eeb3ca9a4a2ee279b6fa3a78bb7f9d618

Contents?: true

Size: 342 Bytes

Versions: 16

Compression:

Stored size: 342 Bytes

Contents

class RunTemplateGenerator < Rails::Generators::Base
  source_root File.expand_path('../templates', __FILE__)

  argument :template_path, :desc => "Path to an application template"
  
  def apply_template
    path = template_path
    unless path =~ /^https?:\/\//
      path = File.expand_path(path, Dir.pwd)
    end
    apply path
  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
appscrolls-0.11.2 lib/rails/generators/run_template/run_template_generator.rb
appscrolls-0.11.1 lib/rails/generators/run_template/run_template_generator.rb
appscrolls-0.11.0 lib/rails/generators/run_template/run_template_generator.rb
appscrolls-0.10.1 lib/rails/generators/run_template/run_template_generator.rb
appscrolls-0.10.0 lib/rails/generators/run_template/run_template_generator.rb
appscrolls-0.9.0 lib/rails/generators/run_template/run_template_generator.rb
appscrolls-0.8.4 lib/rails/generators/run_template/run_template_generator.rb
appscrolls-0.8.3 lib/rails/generators/run_template/run_template_generator.rb
appscrolls-0.8.2 lib/rails/generators/run_template/run_template_generator.rb
appscrolls-0.8.1 lib/rails/generators/run_template/run_template_generator.rb
appscrolls-0.8.0 lib/rails/generators/run_template/run_template_generator.rb
appscrolls-0.7.1 lib/rails/generators/run_template/run_template_generator.rb
appscrolls-0.7.0 lib/rails/generators/run_template/run_template_generator.rb
eldarscrolls-0.7.0 lib/rails/generators/run_template/run_template_generator.rb
ey_rails_wizard-0.6.0 lib/rails/generators/run_template/run_template_generator.rb
ey_rails_wizard-0.5.0 lib/rails/generators/run_template/run_template_generator.rb