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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7d1383e1483ff0061a77a41e7b30b905d8dbccc
4
- data.tar.gz: 96906e031912cc82337c52ec5a8b07019e623e97
3
+ metadata.gz: a226e2c09ad0f99aed8c797a6957b0e4756771f2
4
+ data.tar.gz: f4b6d26c91531106c6229f8d46a445571ec42917
5
5
  SHA512:
6
- metadata.gz: ac6def8d6d00e61872c1909bbc03d664fde738467292879c335f23d396619b752f2f0a7bf4d3f28c5565d34ad41ec27ae4658daa221aa8e427e81ed1eb8bb635
7
- data.tar.gz: 023e096137bcf2f684e45e98324aedb3c3adf51f3d860baf20128101ebe765ea8bb2ae6a37abf38cdc553c306a6a33b27a48d048a1e74623a70aabff13bd745a
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']}" unless config.fetch('username', '').empty?
59
- credentials_params << "-h #{config['host']}" unless config.fetch('host', '').empty?
60
- credentials_params << "-p #{config['port']}" unless config.fetch('port', '').empty?
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['password']
65
+ if config.has_key?('password')
66
66
  "PGPASSWORD='#{config['password']}'"
67
67
  end
68
68
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module DBSync
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  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.7
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-22 00:00:00.000000000 Z
11
+ date: 2015-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano