capistrano-db_sync 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/db_sync/postgres/cli.rb +4 -4
- data/lib/capistrano/db_sync/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a226e2c09ad0f99aed8c797a6957b0e4756771f2
|
4
|
+
data.tar.gz: f4b6d26c91531106c6229f8d46a445571ec42917
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23d727691c124995a0c41b6f12da6260970802c62995427c369436645a8cd420029b40afa064c64b284f18a0863c4fc0dab507c10cb0cf18352ce8835aa5d077
|
7
|
+
data.tar.gz: 82abade949cb32f25c2938656f6864ecabbd529cf7ada6b68fe0774ae34adb83773bf6ba3eea6cea624880c0968dc897e525396ac663ec1492bd584a7d02b733
|
@@ -55,14 +55,14 @@ class Capistrano::DBSync::Postgres::CLI
|
|
55
55
|
|
56
56
|
def credentials
|
57
57
|
credentials_params = []
|
58
|
-
credentials_params << "-U #{config['username']}"
|
59
|
-
credentials_params << "-h #{config['host']}"
|
60
|
-
credentials_params << "-p #{config['port']}"
|
58
|
+
credentials_params << "-U #{config['username']}" if config.has_key?('username')
|
59
|
+
credentials_params << "-h #{config['host']}" if config.has_key?('host')
|
60
|
+
credentials_params << "-p #{config['port']}" if config.has_key?('port')
|
61
61
|
credentials_params.join(" ")
|
62
62
|
end
|
63
63
|
|
64
64
|
def with_pw
|
65
|
-
if config
|
65
|
+
if config.has_key?('password')
|
66
66
|
"PGPASSWORD='#{config['password']}'"
|
67
67
|
end
|
68
68
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-db_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafael Sales
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|