capistrano-deploy-tagger 2.3.3 → 2.3.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/lib/capistrano/deploy/tagger.rb +2 -1
- metadata +2 -2
@@ -20,6 +20,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
20
20
|
|
21
21
|
tag_name = fetch(:latest_deploy_tag) rescue "inproduction"
|
22
22
|
deploy_timestamp_tag_prefix = fetch(:latest_deploy_timestamp_tag_prefix) rescue "deploy"
|
23
|
+
deploy_timestamp_tag_format = fetch(:latest_deploy_timestamp_tag_format) rescue "%Y%m%d-%H%M-%S"
|
23
24
|
|
24
25
|
# keep_deploy_tags = fetch(:keep_deploy_tags) rescue 10
|
25
26
|
current_branch = fetch(:branch)
|
@@ -46,7 +47,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
46
47
|
# end
|
47
48
|
|
48
49
|
# Create a tag for the current deploy with time and date, we'll keep a few of these for history.
|
49
|
-
deploy_tag_string = "#{deploy_timestamp_tag_prefix}-#{Time.now.strftime(
|
50
|
+
deploy_tag_string = "#{deploy_timestamp_tag_prefix}-#{Time.now.strftime(deploy_timestamp_tag_format)}"
|
50
51
|
git "tag #{deploy_tag_string} #{latest_revision}"
|
51
52
|
|
52
53
|
# Remove older deploy tags, ensuring we keep at least ':keep_deploy_tags' of the more recent deploy tags.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-deploy-tagger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-06-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|