Sha256: 2069d19c0e6b5611f4b571830a67245285b59499e13340fb329d213047fde929
Contents?: true
Size: 545 Bytes
Versions: 1
Compression:
Stored size: 545 Bytes
Contents
module Evrone module CI class Router class ScriptBuilder Databases = Struct.new(:app) do def call(env) psql = [] psql << %{sudo -u postgres psql -q -h localhost -c "create role ci with login superuser password 'ci'" || true} psql << %{sudo -u postgres psql -q -h localhost -c "create database ci" || true} env.init.tap do |i| psql.each {|c| i << c } end app.call(env) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
evrone-ci-router-0.2.0.pre12 | lib/evrone/ci/router/script_builder/databases.rb |