lib/caploy/recipes/seeding.rb in caploy-0.2.5 vs lib/caploy/recipes/seeding.rb in caploy-1.0.0

- old
+ new

@@ -1,9 +1,7 @@ -Capistrano::Configuration.instance.load do - - namespace :deploy do - task :seed, :roles => :app do +namespace :deploy do + task :seed do + on roles(:app) do run "cd #{current_path} && RAILS_ENV=#{rails_env} #{rake} db:seed" end end - end