Class: CapistranoSeed::CapistranoIntegration
- Inherits:
-
Object
- Object
- CapistranoSeed::CapistranoIntegration
- Defined in:
- lib/capistrano-seed/capistrano_integration.rb
Class Method Summary collapse
Class Method Details
.load_into(capistrano_config) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# 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 |