Sha256: 2677a0e5bd6463bd45eb5969e3c75dad7d6072f710a2e9d250a92cda926eb37d
Contents?: true
Size: 603 Bytes
Versions: 7
Compression:
Stored size: 603 Bytes
Contents
require 'fileutils' namespace :cloudfuji do desc "Copys of example config files" task :copy_configs do unless File.exist? Rails.root.join('config/mongoid.yml') FileUtils.cp File.expand_path("../../../config/mongoid.cloudfuji.yml", __FILE__), Rails.root.join('config/mongoid.yml') end end desc "Run the initial setup for a Busido app. Copies config files and seeds db." task :install do Rake::Task['cloudfuji:copy_configs'].execute puts "\n" Rake::Task['db:seed'].invoke puts "\n" Rake::Task['db:mongoid:create_indexes'].invoke end end
Version data entries
7 entries across 7 versions & 1 rubygems