handy 0.0.10 → 0.0.11
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.
- data/lib/handy/capistrano/user_confirmation.rb +20 -18
- data/lib/handy/version.rb +1 -1
- metadata +3 -3
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
task :user_confirmation_for_production_deployment, roles => :app do
|
|
3
|
-
if "#{stage}" == 'production'
|
|
4
|
-
message = %Q{
|
|
5
|
-
****************************************************************************************************************
|
|
6
|
-
* You are pushing to production.
|
|
7
|
-
*
|
|
8
|
-
* production is deployed from production branch. So make sure that you merged your changes to production branch.
|
|
9
|
-
*
|
|
10
|
-
* You have pushed your changes to github. Right.
|
|
11
|
-
*
|
|
12
|
-
* continue(y/n)
|
|
13
|
-
****************************************************************************************************************
|
|
14
|
-
}
|
|
15
|
-
answer = Capistrano::CLI.ui.ask(message)
|
|
16
|
-
abort "deployment to production was stopped" unless answer == 'y'
|
|
17
|
-
end
|
|
18
|
-
end
|
|
1
|
+
Capistrano::Configuration.instance(:must_exist).load do
|
|
19
2
|
|
|
3
|
+
before "deploy:update_code", "user_confirmation_for_production_deployment"
|
|
4
|
+
task :user_confirmation_for_production_deployment, roles => :app do
|
|
5
|
+
if "#{stage}" == 'production'
|
|
6
|
+
message = %Q{
|
|
7
|
+
****************************************************************************************************************
|
|
8
|
+
* You are pushing to production.
|
|
9
|
+
*
|
|
10
|
+
* production is deployed from production branch. So make sure that you merged your changes to production branch.
|
|
11
|
+
*
|
|
12
|
+
* You have pushed your changes to github. Right.
|
|
13
|
+
*
|
|
14
|
+
* continue(y/n)
|
|
15
|
+
****************************************************************************************************************
|
|
16
|
+
}
|
|
17
|
+
answer = Capistrano::CLI.ui.ask(message)
|
|
18
|
+
abort "deployment to production was stopped" unless answer == 'y'
|
|
19
|
+
end
|
|
20
|
+
end
|
|
20
21
|
|
|
22
|
+
end
|
data/lib/handy/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: handy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 9
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 11
|
|
10
|
+
version: 0.0.11
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Neeraj Singh
|