pvcglue 0.1.27 → 0.1.28

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
  SHA1:
3
- metadata.gz: 08d6aad383e99c18d8c2b5bad479d8b6d601fd76
4
- data.tar.gz: 240473fa85d1e22f130117e0ab779491d98d57a6
3
+ metadata.gz: c56db4a7378a7ddeea2201b0e45a8fb78708ffd2
4
+ data.tar.gz: 8eedb984f35fc085d352045a327d6c92cae3677e
5
5
  SHA512:
6
- metadata.gz: 60793cba37e6cc407e001d84c3c86a2cbb656f255a037aafab8d053a362d1edb5ce1f7f2d9e7bae2e14747d4ef801432de4c8446678e6c1debb528b2df988d37
7
- data.tar.gz: a14013284ab16ebb666ff8ddadb705a20220313d3156fef17b245122396743654f5114fd40ce424df34e10974a101c2b87789ae6c18f39ec8f9104b6c9ea5f07
6
+ metadata.gz: 6433deb598cb1bc3a6136168c0a5b32a3232dd48f0f55d0a6d4b645b78b9b69452cf270f736c6b3652ab9343893ac39a18ef5f0bd284c2d9488bb2097198fc4f
7
+ data.tar.gz: 1c161a335f0feac6d06f72ed018a397b8ab09d7f761a00dc94131c66182004aa5e3aad4fe0d9a69bdc019792b819fdded0add7f667ba9b7b99acba56af759b25
@@ -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 #{source.database}' if you are:")
126
- raise(Thor::Error, "Ain't gonna do it.") if input.downcase != "destroy #{source.database}"
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
@@ -1,3 +1,3 @@
1
1
  module Pvcglue
2
- VERSION = "0.1.27"
2
+ VERSION = "0.1.28"
3
3
  end
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.27
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-17 00:00:00.000000000 Z
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.3
312
+ rubygems_version: 2.4.8
313
313
  signing_key:
314
314
  specification_version: 4
315
315
  summary: PVC_Glue summary