Sha256: 3943e5582344a816d8138820d307f9caece76374b14ba09359ab3ea0b4e82703

Contents?: true

Size: 1.08 KB

Versions: 22

Compression:

Stored size: 1.08 KB

Contents

# Sequel Database Configuration
<% if @database == "sqlite" %>
development: "sqlite://db/development.sqlite3"
test: "sqlite://db/test.sqlite3"
production: "sqlite://db/production.sqlite3"
<% elsif @database == "postgresql" || @database == 'pg' %>
development: "postgres://<%= `whoami`.chop %>@localhost/<%= @name %>_development"
test: "postgres://<%= `whoami`.chop %>@localhost/<%= @name %>_test"
production: "postgres://<%= `whoami`.chop %>@localhost/<%= @name %>_production"
<% elsif @database == "mysql" %>
development: "mysql2://<%= `whoami`.chop %>@localhost/<%= @name %>_development"
test: "mysql2://<%= `whoami`.chop %>@localhost/<%= @name %>_test"
production: "mysql2://<%= `whoami`.chop %>@localhost/<%= @name %>_production"
<% elsif @database == "mongo" || @database == "mongodb" %>
development:
  host: localhost
  port: 27017
  database: <%= @name %>_development
  username:
  password:

test:
  host: localhost
  port: 27017
  database: <%= @name %>_test
  username:
  password:

production:
  host: localhost
  port: 27017
  database: <%= @name %>_production
  username:
  password:
<% end %>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
aetherg-0.5.1 lib/templates/config/database.yml
aetherg-0.5.0 lib/templates/config/database.yml
aetherg-0.5.0.beta3 lib/templates/config/database.yml
aetherg-0.5.0.beta2 lib/templates/config/database.yml
aetherg-0.5.0.beta lib/templates/config/database.yml
aetherg-0.3.4 lib/templates/config/database.yml
aetherg-0.3.3 lib/templates/config/database.yml
aetherg-0.3.2 lib/templates/config/database.yml
aetherg-0.3.1 lib/templates/config/database.yml
aetherg-0.2.7 lib/templates/config/database.yml
aetherg-0.2.5 lib/templates/config/database.yml
aetherg-0.2.2 lib/templates/config/database.yml
aetherg-0.2.1 lib/templates/config/database.yml
aetherg-0.2.0 lib/templates/config/database.yml
aetherg-0.1.8 lib/templates/config/database.yml
aetherg-0.1.7 lib/templates/config/database.yml
aetherg-0.1.5 lib/templates/config/database.yml
aetherg-0.1.4 lib/templates/config/database.yml
aetherg-0.1.3 lib/templates/config/database.yml
aetherg-0.1.2 lib/templates/config/database.yml