capistrano-postgresql 6.1.0 → 6.2.0
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/README.md +2 -2
- data/lib/capistrano/postgresql/version.rb +1 -1
- data/lib/capistrano/tasks/postgresql.rake +27 -15
- 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: 5a5776df0f225d49720e13dbb11c171e4104904880307507ba26f2ea5c4e87f7
|
|
4
|
+
data.tar.gz: 24ab9e4f29619f884c325b24920d57e535fab9352412e2d63eba2c27aed3fe82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 852bd4061425cfe6e35ea3b8f2a887df135386887dca7e70d074da9f31435ddd9ff7bacd472ea397fa5e696f6fa9f22f194298462562ea601f86526cd83f3ee9
|
|
7
|
+
data.tar.gz: 1af30884b100bae352002701c41b8afd4773f1be8537a013dcdb4c4a09b005b810c7551351e7bd0fe80a2c37f141b1b66abc6488f219f2acfd2783a6f9fc7701
|
data/README.md
CHANGED
|
@@ -26,8 +26,8 @@ version 3 or below you might want to follow the
|
|
|
26
26
|
Put the following in your application's `Gemfile`:
|
|
27
27
|
|
|
28
28
|
group :development do
|
|
29
|
-
gem 'capistrano', '~> 3.
|
|
30
|
-
gem 'capistrano-postgresql', '~> 6.
|
|
29
|
+
gem 'capistrano', '~> 3.11'
|
|
30
|
+
gem 'capistrano-postgresql', '~> 6.2'
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
Then:
|
|
@@ -110,22 +110,30 @@ 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
|
-
|
|
114
|
-
self.host.hostname,
|
|
115
|
-
self.host.user,
|
|
113
|
+
upload!(
|
|
116
114
|
StringIO.new(pg_template(true, download!(archetype_database_yml_file))),
|
|
117
|
-
archetype_database_yml_file
|
|
118
|
-
ssh: { port: self.host.port }
|
|
115
|
+
archetype_database_yml_file
|
|
119
116
|
)
|
|
117
|
+
# Net::SCP.upload!(
|
|
118
|
+
# self.host.hostname,
|
|
119
|
+
# self.host.user,
|
|
120
|
+
# StringIO.new(pg_template(true, download!(archetype_database_yml_file))),
|
|
121
|
+
# archetype_database_yml_file,
|
|
122
|
+
# ssh: { port: self.host.port }
|
|
123
|
+
# )
|
|
120
124
|
else
|
|
121
125
|
execute :mkdir, '-pv', File.dirname(archetype_database_yml_file)
|
|
122
|
-
|
|
123
|
-
self.host.hostname,
|
|
124
|
-
self.host.user,
|
|
126
|
+
upload!(
|
|
125
127
|
StringIO.new(pg_template),
|
|
126
|
-
archetype_database_yml_file
|
|
127
|
-
ssh: { port: self.host.port }
|
|
128
|
+
archetype_database_yml_file
|
|
128
129
|
)
|
|
130
|
+
# Net::SCP.upload!(
|
|
131
|
+
# self.host.hostname,
|
|
132
|
+
# self.host.user,
|
|
133
|
+
# StringIO.new(pg_template),
|
|
134
|
+
# archetype_database_yml_file,
|
|
135
|
+
# ssh: { port: self.host.port }
|
|
136
|
+
# )
|
|
129
137
|
end
|
|
130
138
|
end
|
|
131
139
|
end
|
|
@@ -139,13 +147,17 @@ namespace :postgresql do
|
|
|
139
147
|
end
|
|
140
148
|
on release_roles :all do
|
|
141
149
|
execute :mkdir, '-pv', File.dirname(database_yml_file)
|
|
142
|
-
|
|
143
|
-
self.host.hostname,
|
|
144
|
-
self.host.user,
|
|
150
|
+
upload!(
|
|
145
151
|
StringIO.new(database_yml_contents),
|
|
146
|
-
database_yml_file
|
|
147
|
-
ssh: { port: self.host.port }
|
|
152
|
+
database_yml_file
|
|
148
153
|
)
|
|
154
|
+
# Net::SCP.upload!(
|
|
155
|
+
# self.host.hostname,
|
|
156
|
+
# self.host.user,
|
|
157
|
+
# StringIO.new(database_yml_contents),
|
|
158
|
+
# database_yml_file,
|
|
159
|
+
# ssh: { port: self.host.port }
|
|
160
|
+
# )
|
|
149
161
|
end
|
|
150
162
|
end
|
|
151
163
|
|
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.
|
|
4
|
+
version: 6.2.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-10-
|
|
12
|
+
date: 2018-10-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: capistrano
|