instapusher 0.0.28 → 0.0.29

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ef5a5cebbf97d2bab60a6290055ee2327148435
4
- data.tar.gz: d17df8e4c95320250bb0eb0cc6441b344ffd7fa5
3
+ metadata.gz: 5d89c736b9fd7d073547bbdec7eeddee6c26bfdb
4
+ data.tar.gz: 07f64e3c809a223877067090da1973248dcd8abc
5
5
  SHA512:
6
- metadata.gz: 39b16672c03d02d5083bdf836eaef0ecaf41dfa9b65a8076c75d916978e54c233e4f79385d9c0c3a45cc6f5c6c9c4f17f8b73832513da9a31eb299529c50c409
7
- data.tar.gz: 58fa274b00f2870e3a99428cad7a59bc6f07f522969dc94e4525deb63fa572c91e31f954b4909a95a9e22cea993e25b23b24dfacfe276d6d5779bb4f45675b41
6
+ metadata.gz: 738dc2ca3b1ed7053979e1cf9394603e18160237337fc93bc32e7664033cfd33bc02d4bd2510dc6b0118ea465d58411e080a662c7a83261e0a261be53ae3a98b
7
+ data.tar.gz: a142cb1005844542134f4e6c3eec5fef674b28ab2a02759a669a91dafd2da362abdf3f908b2a9f21d5e44ac3e7b1f1a674df30182aa27aa266533126a89257bb
@@ -19,7 +19,7 @@ module Instapusher
19
19
 
20
20
  def deploy
21
21
  verify_api_key
22
- ::SpecialInstructionForProduction.new.run if production?
22
+ SpecialInstructionForProduction.new.run if production?
23
23
 
24
24
  submission = JobSubmission.new(debug, options)
25
25
  submission.submit_the_job
@@ -1,19 +1,21 @@
1
- class SpecialInstructionForProduction
1
+ module Instapusher
2
+ class SpecialInstructionForProduction
2
3
 
3
- def run
4
- question = "You are deploying to production. Did you take backup? If not then execute rake handy:heroku:backup_production and then come back. "
5
- STDOUT.puts question
6
- STDOUT.puts "Answer 'yes' or 'no' "
7
-
8
- input = STDIN.gets.chomp.downcase
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
- if %w(yes y).include?(input)
11
- #do nothing
12
- elsif %w(no n).include?(input)
13
- abort "Please try again when you have taken the backup"
14
- else
15
- abort "Please answer yes or no"
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
@@ -1,3 +1,3 @@
1
1
  module Instapusher
2
- VERSION = "0.0.28"
2
+ VERSION = "0.0.29"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instapusher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.28
4
+ version: 0.0.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neeraj Singh