Sha256: 95f67c6dcd979163f4fcc0d52bd445c695ced3d5775e0a67d25439ab5611e566
Contents?: true
Size: 740 Bytes
Versions: 10
Compression:
Stored size: 740 Bytes
Contents
unless defined?(Gaku::InstallGenerator) require 'generators/gaku/install/install_generator' end desc 'Generates a dummy app for testing' namespace :common do task :test_app do |t, args| require "#{ENV['LIB_NAME']}" puts ENV['LIB_NAME'] Gaku::DummyGenerator.start ["--lib_name=#{ENV['LIB_NAME']}", '--quiet'] Gaku::InstallGenerator.start ["--lib_name=#{ENV['LIB_NAME']}", '--auto-accept', '--migrate=false', '--seed=false', '--sample=false', '--quiet'] puts 'Setting up dummy database...' cmd = 'bundle exec rake db:drop db:create db:migrate db:test:prepare RAILS_ENV=test' if RUBY_PLATFORM =~ /mswin/ #windows cmd += ' >nul' else cmd += ' >/dev/null' end system(cmd) end end
Version data entries
10 entries across 10 versions & 2 rubygems