capistrano-stretcher 0.5.1 → 0.5.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: d18cf4f67a9819683c8e4ccef41038917f92822d
4
- data.tar.gz: fdc88caedf23f3ec0fa03d6e3b8913184aa90d17
3
+ metadata.gz: 7c221408942057e0229b7c5ad28fc3563c7f5ea5
4
+ data.tar.gz: 12808dcc1570efeb039fd0cc649a03351eb2e4b2
5
5
  SHA512:
6
- metadata.gz: fee52c9ffcdfae0bacd0961d42079fa64d2afc9f035ab2cef4486c077268f7ccd3b44255e2be417197f74c48eaa5cd787647cc11e04b384164375223676f1acb
7
- data.tar.gz: 437d278da7203e3aea6957c5a1badf576f2688b354eaea61b55f2eba6205763fcd25980111631126ea6794e694e660c663ee9a1b5d30b4cd6df5acf8df62d08a
6
+ metadata.gz: c29dad07df70aa17884fb281cc9b47e102b75a0d48e492ce5e5a581716f14cfc18027d7f28060e9bbe5397d911f7c5b88ddf877b33f3e14b2f838e24f41ac5c9
7
+ data.tar.gz: 497c26017a32e6818733ba8062b2d9fc965742753b8507e504a61f732d590616663d18517460f9b62245ab7b265aa921221ffc6a48ba72ca15847c3f72606a80
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "capistrano-stretcher"
7
- spec.version = "0.5.1"
7
+ spec.version = "0.5.2"
8
8
  spec.authors = ["SHIBATA Hiroshi", "Uchio Kondo"]
9
9
  spec.email = ["hsbt@ruby-lang.org", "udzura@udzura.jp"]
10
10
 
@@ -139,6 +139,7 @@ namespace :stretcher do
139
139
  src = fetch(:stretcher_src)
140
140
  template = File.read(File.expand_path('../../templates/manifest.yml.erb', __FILE__))
141
141
  yaml = YAML.load(ERB.new(capture(:cat, "#{local_build_path}/#{fetch(:stretcher_hooks)}")).result(binding))
142
+ release_timestamp = fetch(:release_timestamp) || env.now
142
143
  fetch(:deploy_roles).split(',').each do |role|
143
144
  hooks = yaml[role]
144
145
  yml = ERB.new(template).result(binding)
@@ -7,7 +7,7 @@ commands:
7
7
  - <%= c %>
8
8
  <% end %>
9
9
  post:
10
- - ln -nfs <%= fetch(:deploy_to) %>/releases/<%= env.now %> <%= fetch(:deploy_to) %>/current
10
+ - ln -nfs <%= fetch(:deploy_to) %>/releases/<%= release_timestamp %> <%= fetch(:deploy_to) %>/current
11
11
  - rm -rf <%= fetch(:deploy_to) %>/current/log
12
12
  - ln -nfs <%= fetch(:deploy_to) %>/shared/log <%= fetch(:deploy_to) %>/current/log
13
13
  - mkdir -p <%= fetch(:deploy_to) %>/current/tmp
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-stretcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - SHIBATA Hiroshi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-12-09 00:00:00.000000000 Z
12
+ date: 2017-11-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  version: '0'
108
108
  requirements: []
109
109
  rubyforge_project:
110
- rubygems_version: 2.6.8
110
+ rubygems_version: 2.5.1
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: capistrano task for stretcher.