elocal_capistrano 2.1.1 → 2.1.2

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: d661bcecd999d7ec99927d9ada64a78a61baba63
4
- data.tar.gz: 25953dce2f3edeaba426f38b6666b84cc9be592d
3
+ metadata.gz: 38a787740a9516ff0fa330821ca2082f4bef9475
4
+ data.tar.gz: 73d5ccb425735282fb9f4cd7ae350c7893fc3330
5
5
  SHA512:
6
- metadata.gz: 21538c5a29d32b8babcea0aa02347efc5600ea94eb6affcb2335f893819c06de13dd2a5e8765cacfe62972a5350756ef562f17829411f880993f541dfa238201
7
- data.tar.gz: 072fa5893013b1aeffe6d3c96cdcafd93f73a9eb417d6c667382bc6741c11c645401636a9e43118065e122f3f74c0557b525a2635d9a88d4706dc039cc9c11ac
6
+ metadata.gz: 260d2dff8a3d463b0ad320582917650e220635f7986653f4f330036d71af650f8e1e65fbfbf58fff9346ddecd971ec1bf677201486582d34d4ba4d13030d0c5c
7
+ data.tar.gz: e39baa1236cb498841fd0dc84e33e8698c9d08c3714945f7793d149f8bb00e62e257adccb1060fcbd710d34c9706ce08ab081dde5e7e7f0a0b90615b265444c7
@@ -1,3 +1,3 @@
1
1
  module ElocalCapistrano
2
- VERSION = '2.1.1'
2
+ VERSION = '2.1.2'
3
3
  end
@@ -41,12 +41,17 @@ namespace :git do
41
41
  DESC
42
42
  task :use_release do
43
43
  run_locally do
44
- tag = ReleaseTag.current('staging')
45
- update_versions_file(tag)
46
- execute :git, "add #{fetch(:versions_path)}"
47
- execute :git, "commit -m '[RELEASE][#{fetch(:rails_env)}] Update release tag for #{fetch(:rails_env)} to #{tag}' #{fetch(:versions_path)}"
48
- execute :git, 'push origin master'
49
- set :branch, tag.to_s
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elocal_capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Di Marco