elocal_capistrano 2.1.1 → 2.1.2
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/elocal_capistrano/version.rb +1 -1
- data/lib/tasks/git_tagging.rake +11 -6
- 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: 38a787740a9516ff0fa330821ca2082f4bef9475
|
|
4
|
+
data.tar.gz: 73d5ccb425735282fb9f4cd7ae350c7893fc3330
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 260d2dff8a3d463b0ad320582917650e220635f7986653f4f330036d71af650f8e1e65fbfbf58fff9346ddecd971ec1bf677201486582d34d4ba4d13030d0c5c
|
|
7
|
+
data.tar.gz: e39baa1236cb498841fd0dc84e33e8698c9d08c3714945f7793d149f8bb00e62e257adccb1060fcbd710d34c9706ce08ab081dde5e7e7f0a0b90615b265444c7
|
data/lib/tasks/git_tagging.rake
CHANGED
|
@@ -41,12 +41,17 @@ namespace :git do
|
|
|
41
41
|
DESC
|
|
42
42
|
task :use_release do
|
|
43
43
|
run_locally do
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
staging_tag = ReleaseTag.current('staging')
|
|
45
|
+
current_tag = ReleaseTag.current(fetch(:stage).to_s)
|
|
46
|
+
if staging_tag != current_tag
|
|
47
|
+
update_versions_file(staging_tag)
|
|
48
|
+
execute :git, "add #{fetch(:versions_path)}"
|
|
49
|
+
execute :git, "commit -m '[RELEASE][#{fetch(:rails_env)}] Update release tag for #{fetch(:rails_env)} to #{tag}' #{fetch(:versions_path)}"
|
|
50
|
+
execute :git, 'push origin master'
|
|
51
|
+
else
|
|
52
|
+
puts 'Current version up-to-date. No update needed'
|
|
53
|
+
end
|
|
54
|
+
set :branch, staging_tag.to_s
|
|
50
55
|
end
|
|
51
56
|
end
|
|
52
57
|
|