Sha256: 1e10ac288ca67bf0e07c22138d5f71fe51e2514ede7f942d5efac0d6c8a1d317

Contents?: true

Size: 947 Bytes

Versions: 1

Compression:

Stored size: 947 Bytes

Contents

gem "pg"

gsub_file "config/database.yml", /username: .*/, "username: #{config['pg_username']}"
gsub_file "config/database.yml", /password: .*/, "password: #{config['pg_password']}"

if scroll?("eycloud")
  @db_stack = "postgresql"
end

after_bundler do
  rake "db:create:all" if config['auto_create']
  
  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]

args: -d postgresql

config:
  - auto_create:
      type: boolean
      prompt: "Create local PostgreSQL databases with default configuration?"

  - pg_username:
      type: string
      prompt: "PostgreSQL username:"
  - pg_password:
      type: string
      prompt: "PostgreSQL password:"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
appscrolls-0.8.0 scrolls/postgresql.rb