capistrano-postgresql 6.0.1 → 6.1.0

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
  SHA256:
3
- metadata.gz: 138e5f3257e31a0cf6ba439ea8a8a787aa4c16377aec1888ebd8fa980a7fa35b
4
- data.tar.gz: 4edd1ef70be39500478543e601437707ce62535c61b67c18dfaca122c22cee31
3
+ metadata.gz: efb7cceaa0ed417a1b2af2270f63908cda8baeb139f3631cfc31d569cd79fed5
4
+ data.tar.gz: ef567eea5b5dfd21ddc409276c61ac4fa446a26993ec7c7cf1ece48df6455b06
5
5
  SHA512:
6
- metadata.gz: cad63666c883b4443ec12198a92c5fc92170b20a3d46a1fb780625e3eb76f92b01ed23f0658951429742d6315d27e6529d7f2d8e9d5557f0f69e3bed2c30f426
7
- data.tar.gz: 27818f8f481646574ffb381e60ed004831f546f731d08020cfcbc093e8784a1fa5fa6590572a4b77d1cf03266cd6c8c4f6f2ce18bda74b70a088f8dad72a9eec
6
+ metadata.gz: 0d8990f9e2d4ce27e2cf3a26fe7becf675a77ab5cd446ebc9b89e6aabcfa33d18b5027fc398d42aba22e5cb7347148adfcd746a3d08e37be8e25144955ab8e26
7
+ data.tar.gz: e0b4e1f1286ab66d5e393634c87cd8681b7a6d9c12340763b09ef9410153be62fdc6f6e62b80f8052b604c4e759a3d8c6d3fa2e604d7ad338347c4f4a2affb86
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Postgresql
3
- VERSION = '6.0.1'
3
+ VERSION = '6.1.0'
4
4
  end
5
5
  end
@@ -110,10 +110,22 @@ namespace :postgresql do
110
110
  task :generate_database_yml_archetype do
111
111
  on primary :db do
112
112
  if test "[ -e #{archetype_database_yml_file} ]" # Archetype already exists. Just update values that changed. Make sure we don't overwrite it to protect generated passwords.
113
- Net::SCP.upload!(self.host.hostname, self.host.user,StringIO.new(pg_template(true, download!(archetype_database_yml_file))),archetype_database_yml_file)
113
+ Net::SCP.upload!(
114
+ self.host.hostname,
115
+ self.host.user,
116
+ StringIO.new(pg_template(true, download!(archetype_database_yml_file))),
117
+ archetype_database_yml_file,
118
+ ssh: { port: self.host.port }
119
+ )
114
120
  else
115
121
  execute :mkdir, '-pv', File.dirname(archetype_database_yml_file)
116
- Net::SCP.upload!(self.host.hostname,self.host.user,StringIO.new(pg_template),archetype_database_yml_file)
122
+ Net::SCP.upload!(
123
+ self.host.hostname,
124
+ self.host.user,
125
+ StringIO.new(pg_template),
126
+ archetype_database_yml_file,
127
+ ssh: { port: self.host.port }
128
+ )
117
129
  end
118
130
  end
119
131
  end
@@ -127,7 +139,13 @@ namespace :postgresql do
127
139
  end
128
140
  on release_roles :all do
129
141
  execute :mkdir, '-pv', File.dirname(database_yml_file)
130
- Net::SCP.upload!(self.host.hostname, self.host.user, StringIO.new(database_yml_contents), database_yml_file)
142
+ Net::SCP.upload!(
143
+ self.host.hostname,
144
+ self.host.user,
145
+ StringIO.new(database_yml_contents),
146
+ database_yml_file,
147
+ ssh: { port: self.host.port }
148
+ )
131
149
  end
132
150
  end
133
151
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-postgresql
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.1
4
+ version: 6.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Sutic
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-07-16 00:00:00.000000000 Z
12
+ date: 2018-10-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano