Sha256: 9d7bf45f56f20243a4d0a99da0ade1cd0a0b8e31bb9e79c6bba297bd191dc096

Contents?: true

Size: 570 Bytes

Versions: 13

Compression:

Stored size: 570 Bytes

Contents

Capistrano::Configuration.instance.load do
  require_settings :current_path

  after "deploy:upgrade_database", "database:migrate"
  after "deploy:upgrade_database", "database:seed"

  namespace :database do
    desc "Migrate the database"
    task :migrate, roles: :db, on_no_matching_servers: :continue do
      run "cd #{current_path}; foreman run bundle exec rake db:migrate"
    end

    desc "Seed the database"
    task :seed, roles: :db, on_no_matching_servers: :continue do
      run "cd #{current_path}; foreman run bundle exec rake db:seed"
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
capistrano-elobuff-0.2.7 lib/capistrano/elobuff/recipes/database.rb
capistrano-elobuff-0.2.6 lib/capistrano/elobuff/recipes/database.rb
capistrano-elobuff-0.2.5 lib/capistrano/elobuff/recipes/database.rb
capistrano-elobuff-0.2.4 lib/capistrano/elobuff/recipes/database.rb
capistrano-elobuff-0.2.3 lib/capistrano/elobuff/recipes/database.rb
capistrano-elobuff-0.2.2 lib/capistrano/elobuff/recipes/database.rb
capistrano-elobuff-0.2.1 lib/capistrano/elobuff/recipes/database.rb
capistrano-elobuff-0.2.0 lib/capistrano/elobuff/recipes/database.rb
capistrano-elobuff-0.1.4 lib/capistrano/elobuff/recipes/database.rb
capistrano-elobuff-0.1.3 lib/capistrano/elobuff/recipes/database.rb
capistrano-elobuff-0.1.2 lib/capistrano/elobuff/recipes/database.rb
capistrano-elobuff-0.1.1 lib/capistrano/elobuff/recipes/database.rb
capistrano-elobuff-0.1.0 lib/capistrano/elobuff/recipes/database.rb