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 +4 -4
- data/lib/capistrano/postgresql/version.rb +1 -1
- data/lib/capistrano/tasks/postgresql.rake +21 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efb7cceaa0ed417a1b2af2270f63908cda8baeb139f3631cfc31d569cd79fed5
|
4
|
+
data.tar.gz: ef567eea5b5dfd21ddc409276c61ac4fa446a26993ec7c7cf1ece48df6455b06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d8990f9e2d4ce27e2cf3a26fe7becf675a77ab5cd446ebc9b89e6aabcfa33d18b5027fc398d42aba22e5cb7347148adfcd746a3d08e37be8e25144955ab8e26
|
7
|
+
data.tar.gz: e0b4e1f1286ab66d5e393634c87cd8681b7a6d9c12340763b09ef9410153be62fdc6f6e62b80f8052b604c4e759a3d8c6d3fa2e604d7ad338347c4f4a2affb86
|
@@ -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!(
|
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!(
|
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!(
|
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
|
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-
|
12
|
+
date: 2018-10-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|