Sha256: f91e86f4d0a7ec3c43f61d558b1798ac2ef5b61eb54869c1052bff24e1c2c017
Contents?: true
Size: 908 Bytes
Versions: 4
Compression:
Stored size: 908 Bytes
Contents
gsub_file "config/database.yml", /username: .*/, "username: #{config['pg_username']}" gsub_file "config/database.yml", /password: .*/, "password: #{config['pg_password']}" %w[development test production].each do |env| gsub_file "config/database.yml", /^#{env}:/, "#{env}:\n host: localhost" end after_bundler do rake "db:create:all" rakefile("sample.rake") do <<-RUBY namespace :db do desc "Populate the database with sample data" task :sample => :environment do end task :populate => :sample end RUBY end end __END__ name: PostgreSQL description: Use PostgreSQL for dev & production database author: drnic exclusive: orm category: persistence run_before: [eycloud, cf] args: -d postgresql config: - pg_username: type: string prompt: "Local development PostgreSQL username:" - pg_password: type: string prompt: "Local development PostgreSQL password:"
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
appscrolls-0.11.2 | scrolls/postgresql.rb |
appscrolls-0.11.1 | scrolls/postgresql.rb |
appscrolls-0.11.0 | scrolls/postgresql.rb |
appscrolls-0.10.1 | scrolls/postgresql.rb |