capistrano-deploytags 1.0.2 → 1.0.3

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: 51dce640b7756f3fea247c8f2e3ac0a9b7161749
4
- data.tar.gz: bb2d5679b4f7a749d9452fca26d7bc3ce36fe079
3
+ metadata.gz: 838b6dffb28bd3e3fa98bbf7af2c72534bf677fe
4
+ data.tar.gz: e6589430038de2a23c754e675ab443e21a0fabc1
5
5
  SHA512:
6
- metadata.gz: 75e42547ca9f710cf3995aedad01016b253e1cfbea9ec6dd524f610fecd503592941c5aad45e3c001516019b1d4c7ad148612dbddb3c8e8df15020280a816f88
7
- data.tar.gz: de6d8ddf99425205aa2f980c090a448b36f71c26f6e81052ea8903acca3dcec58c2c380bcf78c7f6166f05744619400c5cb49dd40d0c8552c9d434bfada95e70
6
+ metadata.gz: 4c744b5c282eb03dedd43e99e9a51dcb6ea2f1ce75c49e7acdaf731941ab83c4f3ad6d1c614a68cbadfc3992e909fc61b87f39e071d3f59e365635bfa7a07fd4
7
+ data.tar.gz: 7daba09c8e81cc300e7fc0026e51fbf5c660cec9b0307b587adcf3b2d23c5eee7a50a7aba5b5bf7ce304d4ae719e85b120c9ccb703e9172892e8a09437876943
@@ -39,8 +39,10 @@ namespace :deploy do
39
39
  latest_revision = fetch(:current_revision)
40
40
  commit_message = CapistranoDeploytags::Helper.commit_message(latest_revision, fetch(:stage))
41
41
 
42
- strategy.git "tag -a #{tag_name} -m \"#{commit_message}\" #{latest_revision}"
43
- strategy.git "push #{fetch(:git_remote, 'origin')} #{tag_name}"
42
+ unless fetch(:sshkit_backend) == SSHKit::Backend::Printer # unless --dry-run flag present
43
+ strategy.git "tag -a #{tag_name} -m \"#{commit_message}\" #{latest_revision}"
44
+ strategy.git "push #{fetch(:git_remote, 'origin')} #{tag_name}"
45
+ end
44
46
 
45
47
  info "[cap-deploy-tagger] Tagged #{latest_revision} with #{tag_name}"
46
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-deploytags
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Matthias
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-22 00:00:00.000000000 Z
12
+ date: 2015-05-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  requirements: []
89
89
  rubyforge_project:
90
- rubygems_version: 2.2.2
90
+ rubygems_version: 2.4.5
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Add dated, environment-specific tags to your git repo at each deployment.