Sha256: bf8139f6209a0f5ae6af1d3148b020841932100c8e96784207d8b673e7a94cab

Contents?: true

Size: 435 Bytes

Versions: 8

Compression:

Stored size: 435 Bytes

Contents

#!/usr/bin/env ruby

require 'fileutils'

Dir.chdir(File.expand_path(File.dirname(__FILE__)) + "/../")

source = "config/examples/database.yml"
target = "config/database.yml"

if File.exist?(target)
  puts "#{target} already exists"
else
  FileUtils.cp(source, target)
  puts "#{target} copied"
end

system "bundle"
system "bundle exec rake db:create --trace RAILS_ENV=test"
system "bundle exec rake db:migrate --trace RAILS_ENV=test"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rails_exception_handler-1.3.0 spec/testapp_30/script/setup
rails_exception_handler-1.2.1 spec/testapp_30/script/setup
rails_exception_handler-1.2.0 spec/testapp_30/script/setup
rails_exception_handler-1.1.2 spec/testapp_30/script/setup
rails_exception_handler-1.1.1 spec/testapp_30/script/setup
rails_exception_handler-1.1.0 spec/testapp_30/script/setup
rails_exception_handler-1.0.1 spec/testapp_30/script/setup
rails_exception_handler-1.0.0 spec/testapp_30/script/setup