Sha256: 8752d60e16e19e7ad12daf3a89dddef89496f0dfe9e5c6ac484e2d88108cc63e
Contents?: true
Size: 461 Bytes
Versions: 5
Compression:
Stored size: 461 Bytes
Contents
require 'rails/generators' class PrepareGenesisGenerator < Rails::Generators::Base argument :envs, :type => :string, :default => %w(development production) def self.source_root File.join( File.dirname(__FILE__), 'templates' ) end def install_seeding envs.each { |env| empty_directory "db/seeds/#{env}" } copy_file 'genesis.rake', 'lib/tasks/genesis.rake' copy_file 'genesis_callbacks.rb', 'db/seeds/genesis_callbacks.rb' end end
Version data entries
5 entries across 5 versions & 1 rubygems