Sha256: abf369f9fd58d2efca3ef249f9f1e792ef2d77d240801439ef585d12d63771b0

Contents?: true

Size: 444 Bytes

Versions: 2

Compression:

Stored size: 444 Bytes

Contents

namespace :db do
  desc 'Setup db configuration.'
  task :setup do
    on roles(:app) do
      execute "mkdir -p #{fetch(:shared_path)}/config"
      template 'database.yml.erb', "#{shared_path}/config/database.yml"
    end
  end
  desc 'Run rake db:seed.'
  task :seed do
    on roles(:app) do
      within release_path do
        with rails_env: fetch(:rails_env) do
          execute :rake, 'db:seed'
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
recipes_matic-1.2.1 lib/generators/recipes_matic/templates/lib/capistrano/tasks/db.rake
recipes_matic-1.2.0 lib/generators/recipes_matic/templates/lib/capistrano/tasks/db.rake