Sha256: 151119610a3f8ba176f2e4988b284e41f60d769f6eb6c5b3d0f5c42c92a4453d
Contents?: true
Size: 843 Bytes
Versions: 2
Compression:
Stored size: 843 Bytes
Contents
task :restart do system "touch tmp/restart.txt" end desc "Bootstrap project" task :bootstrap => "bootstrap:files" do invoke_task_if_exists "db:create" Rake::Task["db:migrate:all"].invoke if Rake::Task.task_defined?("db:migrate") Rake::Task["restart"].invoke end namespace :bootstrap do desc "Bootstrap project to run in production" task :production => "bootstrap:files" do invoke_task_if_exists "db:create" invoke_task_if_exists "db:migrate" invoke_task_if_exists "assets:precompile" invoke_task_if_exists "bootstrap:production:post" Rake::Task["restart"].invoke end namespace :production do task :post do end end task :files do system "cp config/database.sample.yml config/database.yml" unless File.exist?('config/database.yml') or !File.exist?('config/database.sample.yml') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bard-rake-0.10.1 | lib/bard/rake/bootstrap.rb |
bard-rake-0.10.0 | lib/bard/rake/bootstrap.rb |