zilkey-auto_tagger 0.0.3 → 0.0.4
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/recipes/release_tagger.rb +6 -3
- metadata +1 -1
data/recipes/release_tagger.rb
CHANGED
@@ -7,9 +7,12 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
7
7
|
Use -Shead=true to set the branch to master, -Stag=<tag> to specify the tag explicitly.
|
8
8
|
}
|
9
9
|
task :set_branch do
|
10
|
-
branch_name = CapistranoHelper.new(variables).branch
|
11
|
-
|
12
|
-
|
10
|
+
if branch_name = CapistranoHelper.new(variables).branch
|
11
|
+
set :branch, branch_name
|
12
|
+
logger.info "setting branch to #{branch_name}"
|
13
|
+
else
|
14
|
+
logger.info "AUTO TAGGER WARNING: skipping auto-assignment of branch. Branch will remain the default.}"
|
15
|
+
end
|
13
16
|
end
|
14
17
|
|
15
18
|
desc %Q{Creates a tag using the current_stage variable}
|