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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: efb7cceaa0ed417a1b2af2270f63908cda8baeb139f3631cfc31d569cd79fed5
4
- data.tar.gz: ef567eea5b5dfd21ddc409276c61ac4fa446a26993ec7c7cf1ece48df6455b06
3
+ metadata.gz: 5a5776df0f225d49720e13dbb11c171e4104904880307507ba26f2ea5c4e87f7
4
+ data.tar.gz: 24ab9e4f29619f884c325b24920d57e535fab9352412e2d63eba2c27aed3fe82
5
5
  SHA512:
6
- metadata.gz: 0d8990f9e2d4ce27e2cf3a26fe7becf675a77ab5cd446ebc9b89e6aabcfa33d18b5027fc398d42aba22e5cb7347148adfcd746a3d08e37be8e25144955ab8e26
7
- data.tar.gz: e0b4e1f1286ab66d5e393634c87cd8681b7a6d9c12340763b09ef9410153be62fdc6f6e62b80f8052b604c4e759a3d8c6d3fa2e604d7ad338347c4f4a2affb86
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.2.0'
30
- gem 'capistrano-postgresql', '~> 6.0.0'
29
+ gem 'capistrano', '~> 3.11'
30
+ gem 'capistrano-postgresql', '~> 6.2'
31
31
  end
32
32
 
33
33
  Then:
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Postgresql
3
- VERSION = '6.1.0'
3
+ VERSION = '6.2.0'
4
4
  end
5
5
  end
@@ -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
- Net::SCP.upload!(
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
- Net::SCP.upload!(
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
- Net::SCP.upload!(
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.1.0
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-05 00:00:00.000000000 Z
12
+ date: 2018-10-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano