Sha256: fb8ac7e675b26b58642053208072409f541bdf2f6902286dc2b0e5589659f6b7
Contents?: true
Size: 965 Bytes
Versions: 1
Compression:
Stored size: 965 Bytes
Contents
require 'rails/generators' module Spree class ExtensionGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) def generate directory "app", "#{file_name}/app" directory "lib", "#{file_name}/lib" directory "script", "#{file_name}/script" template "extension.gemspec", "#{file_name}.gemspec" template "Gemfile", "#{file_name}/Gemfile" template "gitignore", "#{file_name}/.gitignore" template "LICENSE", "#{file_name}/LICENSE" template "Rakefile", "#{file_name}/Rakefile" template "README.md", "#{file_name}/README.md" template "config/routes.rb", "#{file_name}/config/routes.rb" template "config/locales/en.yml", "#{file_name}/config/locales/en.yml" template "rspec", "#{file_name}/.rspec" template "spec/spec_helper.rb.tt", "#{file_name}/spec/spec_helper.rb" template "Versionfile", "#{file_name}/Versionfile" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_core-1.0.0.rc1 | lib/generators/spree/extension/extension_generator.rb |