postgresinator 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/postgresinator/built-in.rb +2 -2
- metadata +2 -2
|
@@ -204,7 +204,7 @@ def pg_role_exists?(db_role)
|
|
|
204
204
|
fetch(:postgres_image_name),
|
|
205
205
|
"-c", "'/usr/bin/psql", "-U", "postgres",
|
|
206
206
|
"--host", "#{fetch(:postgres_socket_path)}'", "|",
|
|
207
|
-
"grep", "-
|
|
207
|
+
"grep", "-qw", "'#{db_role}'"
|
|
208
208
|
)
|
|
209
209
|
end
|
|
210
210
|
def pg_database_exists?(database_name)
|
|
@@ -215,7 +215,7 @@ def pg_database_exists?(database_name)
|
|
|
215
215
|
fetch(:postgres_image_name),
|
|
216
216
|
"-c", "'/usr/bin/psql", "-U", "postgres",
|
|
217
217
|
"--host", fetch(:postgres_socket_path), "-lqt", "|",
|
|
218
|
-
"cut", "-d\\|", "-f1", "|", "grep", "-
|
|
218
|
+
"cut", "-d\\|", "-f1", "|", "grep", "-qw", "#{database_name}'"
|
|
219
219
|
)
|
|
220
220
|
end
|
|
221
221
|
def pg_database_empty?(database_name)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: postgresinator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-03-
|
|
12
|
+
date: 2016-03-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: capistrano
|