Sha256: 94bb5ec2ef92130dbb83ad6d067ad143eea6901b2de198526cbd09ccc8d491df

Contents?: true

Size: 583 Bytes

Versions: 7

Compression:

Stored size: 583 Bytes

Contents

set_default(:mysql_password) { Capistrano::CLI.password_prompt "Mysql Password: " }

namespace :mysql do
  desc "Generate the database.yml configuration file."
  task :setup, roles: :app do
    run "mkdir -p #{shared_path}/config"
    template "mysql.yml.erb", "#{shared_path}/config/database.yml"
  end
  after "deploy:setup", "mysql:setup"

  desc "Symlink the database.yml file into latest release"
  task :symlink, roles: :app do
    run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
  end
  after "deploy:finalize_update", "mysql:symlink"
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nubis_rails_boilerplate-0.0.11 lib/capistrano_recipes/mysql.rb
nubis_rails_boilerplate-0.0.10 lib/capistrano_recipes/mysql.rb
nubis_rails_boilerplate-0.0.9 lib/capistrano_recipes/mysql.rb
nubis_rails_boilerplate-0.0.8 lib/capistrano_recipes/mysql.rb
nubis_rails_boilerplate-0.0.7 lib/capistrano_recipes/mysql.rb
nubis_rails_boilerplate-0.0.6 lib/capistrano_recipes/mysql.rb
nubis_rails_boilerplate-0.0.5 lib/capistrano_recipes/mysql.rb