capistrano_confirm_branch 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -10,11 +10,15 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
10
10
|
deployed_branch = nil
|
11
11
|
pending_deploy_branch = fetch(:branch)
|
12
12
|
|
13
|
-
|
13
|
+
branch_file = "#{shared_path}/current_branch"
|
14
|
+
|
15
|
+
run %{touch #{branch_file} && cat #{branch_file}} do |ch, stream, out|
|
14
16
|
deployed_branch = out.strip
|
15
17
|
end
|
16
18
|
|
17
19
|
if deployed_branch != pending_deploy_branch
|
20
|
+
deployed_branch ||= "unknown"
|
21
|
+
|
18
22
|
Capistrano::CLI.ui.say %{
|
19
23
|
============ Changing deployed branches ============
|
20
24
|
Deployed Branch: #{deployed_branch}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano_confirm_branch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -53,7 +53,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
53
53
|
version: '0'
|
54
54
|
segments:
|
55
55
|
- 0
|
56
|
-
hash:
|
56
|
+
hash: 4438465456247255133
|
57
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
58
|
none: false
|
59
59
|
requirements:
|
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
62
|
version: '0'
|
63
63
|
segments:
|
64
64
|
- 0
|
65
|
-
hash:
|
65
|
+
hash: 4438465456247255133
|
66
66
|
requirements: []
|
67
67
|
rubyforge_project:
|
68
68
|
rubygems_version: 1.8.24
|