brillo 1.1.3 → 1.1.4.pre1
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.
- checksums.yaml +4 -4
- data/lib/brillo/adapter/postgres.rb +2 -2
- data/lib/brillo/helpers/exec_helper.rb +1 -0
- data/lib/brillo/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f0e667a2eda4400bc1ed6bf91680b988177d6c2
|
|
4
|
+
data.tar.gz: 15b12207d1f45109e0abea265ecc607ca188e26e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 44689d60ef7b4da6ec6cc53fb081d0f1292396bba6878caabf2db9fba1c8a97bdbf06bbd54b819a1976ac0576203b8d14ba4910869d6cbce118c10f8b5004854
|
|
7
|
+
data.tar.gz: 56317fb97566d518aa650313470e9ec544637864871499bfe4597f41de50d45652e1c4fd0c37da7438834cbc81cef7ea88f0a81b0b52aa966738909040e4e799
|
|
@@ -3,8 +3,8 @@ module Brillo
|
|
|
3
3
|
class Postgres < Base
|
|
4
4
|
def load_command
|
|
5
5
|
host = config[:host] ? "--host #{config[:host]}" : ""
|
|
6
|
-
password = config[:password] ? "
|
|
7
|
-
"psql #{host} -U #{config[:username]} #{password} #{config[:database]}"
|
|
6
|
+
password = config[:password] ? "PGPASSWORD=#{config[:password]} " : ""
|
|
7
|
+
"#{password}psql #{host} -U #{config[:username]} #{password} #{config[:database]}"
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
# pgdump without schema does not set sequences, so we have to do it ourselves, or the first insert
|
|
@@ -21,6 +21,7 @@ module Brillo
|
|
|
21
21
|
private
|
|
22
22
|
|
|
23
23
|
def log_anonymized command_string
|
|
24
|
+
command_string = command_string.gsub(/PGPASSWORD=[^\s]+/, "PGPASSWORD={FILTERED}")
|
|
24
25
|
command_string = command_string.gsub(/--password=[^\s]+/, "--password={FILTERED}")
|
|
25
26
|
command_string = command_string.gsub(/EC2_ACCESS_KEY=[^\s]+/, "EC2_ACCESS_KEY={FILTERED}")
|
|
26
27
|
command_string = command_string.gsub(/EC2_SECRET_KEY=[^\s]+/, "EC2_SECRET_KEY={FILTERED}")
|
data/lib/brillo/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: brillo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.4.pre1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Bessey
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-07-
|
|
11
|
+
date: 2016-07-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -220,9 +220,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
220
220
|
version: '0'
|
|
221
221
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
222
|
requirements:
|
|
223
|
-
- - "
|
|
223
|
+
- - ">"
|
|
224
224
|
- !ruby/object:Gem::Version
|
|
225
|
-
version:
|
|
225
|
+
version: 1.3.1
|
|
226
226
|
requirements: []
|
|
227
227
|
rubyforge_project:
|
|
228
228
|
rubygems_version: 2.2.2
|