Sha256: 36832b7de7d30a73a316c8821dc9446358dc1946386e55b7a958e395e0edde35
Contents?: true
Size: 697 Bytes
Versions: 10
Compression:
Stored size: 697 Bytes
Contents
require "rails/generators/rails/app/app_generator" module Spree class SandboxGenerator < Spree::DummyGenerator desc "Creates blank Rails application, installs Spree and all sample data" def self.source_paths paths = self.superclass.source_paths paths.unshift File.expand_path('../templates', __FILE__) paths.flatten end def drop_database say "dropping database" inside dummy_path do quietly do rake 'db:drop -f sandbox/Rakefile' end end end protected def dummy_path 'sandbox' end def gemfile_path '../../../Gemfile' end def module_name 'Sandbox' end end end
Version data entries
10 entries across 10 versions & 1 rubygems