pvcglue 0.1.27 → 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pvcglue/db.rb +4 -4
- data/lib/pvcglue/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c56db4a7378a7ddeea2201b0e45a8fb78708ffd2
|
4
|
+
data.tar.gz: 8eedb984f35fc085d352045a327d6c92cae3677e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6433deb598cb1bc3a6136168c0a5b32a3232dd48f0f55d0a6d4b645b78b9b69452cf270f736c6b3652ab9343893ac39a18ef5f0bd284c2d9488bb2097198fc4f
|
7
|
+
data.tar.gz: 1c161a335f0feac6d06f72ed018a397b8ab09d7f761a00dc94131c66182004aa5e3aad4fe0d9a69bdc019792b819fdded0add7f667ba9b7b99acba56af759b25
|
data/lib/pvcglue/db.rb
CHANGED
@@ -120,10 +120,10 @@ module Pvcglue
|
|
120
120
|
# silence Thor warnings, as these are not Thor commands. (But we still need 'say' and 'ask' and friends.)
|
121
121
|
no_commands do
|
122
122
|
|
123
|
-
def destroy_prod?
|
123
|
+
def destroy_prod?(db)
|
124
124
|
say("Are you *REALLY* sure you want to DESTROY the PRODUCTION database?")
|
125
|
-
input = ask("Type 'destroy #{
|
126
|
-
raise(Thor::Error, "Ain't gonna do it.") if input.downcase != "destroy #{
|
125
|
+
input = ask("Type 'destroy #{db.database.downcase}' if you are:")
|
126
|
+
raise(Thor::Error, "Ain't gonna do it.") if input.downcase != "destroy #{db.database.downcase}"
|
127
127
|
puts "ok, going through with the it... (I sure hope you know what you are doing, Keith!)"
|
128
128
|
end
|
129
129
|
|
@@ -173,7 +173,7 @@ module Pvcglue
|
|
173
173
|
end
|
174
174
|
|
175
175
|
def pg_restore(db, file_name, fast = false)
|
176
|
-
Pvcglue.cloud.stage_name == 'production' && destroy_prod?
|
176
|
+
Pvcglue.cloud.stage_name == 'production' && destroy_prod?(db)
|
177
177
|
file_name = self.class.file_helper(file_name)
|
178
178
|
|
179
179
|
if db.kind == :remote
|
data/lib/pvcglue/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pvcglue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Lyric
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -309,7 +309,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
309
309
|
version: '0'
|
310
310
|
requirements: []
|
311
311
|
rubyforge_project:
|
312
|
-
rubygems_version: 2.4.
|
312
|
+
rubygems_version: 2.4.8
|
313
313
|
signing_key:
|
314
314
|
specification_version: 4
|
315
315
|
summary: PVC_Glue summary
|