instapusher 0.0.28 → 0.0.29
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/lib/instapusher/commands.rb +1 -1
- data/lib/instapusher/special_instruction_for_production.rb +16 -14
- data/lib/instapusher/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d89c736b9fd7d073547bbdec7eeddee6c26bfdb
|
4
|
+
data.tar.gz: 07f64e3c809a223877067090da1973248dcd8abc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 738dc2ca3b1ed7053979e1cf9394603e18160237337fc93bc32e7664033cfd33bc02d4bd2510dc6b0118ea465d58411e080a662c7a83261e0a261be53ae3a98b
|
7
|
+
data.tar.gz: a142cb1005844542134f4e6c3eec5fef674b28ab2a02759a669a91dafd2da362abdf3f908b2a9f21d5e44ac3e7b1f1a674df30182aa27aa266533126a89257bb
|
data/lib/instapusher/commands.rb
CHANGED
@@ -1,19 +1,21 @@
|
|
1
|
-
|
1
|
+
module Instapusher
|
2
|
+
class SpecialInstructionForProduction
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
def run
|
5
|
+
question = "You are deploying to production. Did you take backup? If not then execute rake handy:heroku:backup_production and then come back. "
|
6
|
+
STDOUT.puts question
|
7
|
+
STDOUT.puts "Answer 'yes' or 'no' "
|
8
|
+
|
9
|
+
input = STDIN.gets.chomp.downcase
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
if %w(yes y).include?(input)
|
12
|
+
#do nothing
|
13
|
+
elsif %w(no n).include?(input)
|
14
|
+
abort "Please try again when you have taken the backup"
|
15
|
+
else
|
16
|
+
abort "Please answer yes or no"
|
17
|
+
end
|
16
18
|
end
|
17
|
-
end
|
18
19
|
|
20
|
+
end
|
19
21
|
end
|
data/lib/instapusher/version.rb
CHANGED