capistrano-postgresql 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/lib/capistrano/postgresql/psql_helpers.rb +1 -1
- data/lib/capistrano/postgresql/version.rb +1 -1
- data/lib/capistrano/tasks/postgresql.rake +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8268ca43327dee94bcb0286b28830e5835fdf867
|
4
|
+
data.tar.gz: 277c459ccd2660f3cc4daaecd638f6d79d43e10e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ab557923a1b61c8979920759870153812e2e7aada895679fdddcc0e2ab2cc2b8b4713b709912c99b37faecb0fa12a8bb35985cfe6ad13ab4a6aee7a2341af93
|
7
|
+
data.tar.gz: 1cc9cc010a2ab99fd7f5efc61256ac27f6e123e001b71c26a1c49ac1fb253f5897421e3dc9f684e6ef4151636c8f3e95900722e7b53be7ac82c707153e00d6cf
|
data/README.md
CHANGED
@@ -110,6 +110,15 @@ yet another fricking password.<br/>
|
|
110
110
|
`pg_password` option has precedence. If it is set,
|
111
111
|
`pg_ask_for_password` is ignored.
|
112
112
|
|
113
|
+
* `set :pg_system_user`<br/>
|
114
|
+
Default `postgres`. Set this option to the user that owns the postgres process
|
115
|
+
on your system. Normally the default is fine, but for instance on FreeBSD the
|
116
|
+
default prostgres user is `pgsql`.
|
117
|
+
|
118
|
+
* `set :pg_system_db`<br/>
|
119
|
+
Default `postgres`. Set this if the system database don't have the standard name.
|
120
|
+
Usually there should be no reason to change this from the default.
|
121
|
+
|
113
122
|
`database.yml` template-only settings:
|
114
123
|
|
115
124
|
* `set :pg_pool`<br/>
|
@@ -4,7 +4,7 @@ module Capistrano
|
|
4
4
|
|
5
5
|
# returns true or false depending on the remote command exit status
|
6
6
|
def psql(*args)
|
7
|
-
test :sudo,
|
7
|
+
test :sudo, "-u #{fetch(:pg_system_user)} psql -d #{fetch(:pg_system_db)}", *args
|
8
8
|
end
|
9
9
|
|
10
10
|
def db_user_exists?(name)
|
@@ -12,6 +12,8 @@ namespace :load do
|
|
12
12
|
set :pg_user, -> { fetch(:pg_database) }
|
13
13
|
set :pg_ask_for_password, false
|
14
14
|
set :pg_password, -> { ask_for_or_generate_password }
|
15
|
+
set :pg_system_user, 'postgres'
|
16
|
+
set :pg_system_db, 'postgres'
|
15
17
|
# template only settings
|
16
18
|
set :pg_templates_path, 'config/deploy/templates'
|
17
19
|
set :pg_pool, 5
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-postgresql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno Sutic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
|
-
rubygems_version: 2.
|
88
|
+
rubygems_version: 2.2.2
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: Creates application database user and `database.yml` on the server. No SSH
|