class CapistranoSeed::CapistranoIntegration
Public Class Methods
load_into(capistrano_config)
click to toggle source
# File lib/capistrano-seed/capistrano_integration.rb, line 8 def self.load_into(capistrano_config) capistrano_config.load do namespace :deploy do desc "Seed the database" task :seed, :roles =>:db, :only => {:primary => true}, :except => { :no_release => true } do run "cd #{current_path}; RAILS_ENV=#{rails_env} bundle exec rake db:seed" end end end end