lib/capistrano/tasks/stretcher.rake in capistrano-stretcher-0.5.1 vs lib/capistrano/tasks/stretcher.rake in capistrano-stretcher-0.5.2

- old
+ new

@@ -137,9 +137,10 @@ failure_message = "Deploy failed at *$(hostname)* :fire:" checksum = capture("openssl sha256 #{local_tarball_path}/current/#{fetch(:local_tarball_name)} | gawk -F' ' '{print $2}'").chomp src = fetch(:stretcher_src) template = File.read(File.expand_path('../../templates/manifest.yml.erb', __FILE__)) yaml = YAML.load(ERB.new(capture(:cat, "#{local_build_path}/#{fetch(:stretcher_hooks)}")).result(binding)) + release_timestamp = fetch(:release_timestamp) || env.now fetch(:deploy_roles).split(',').each do |role| hooks = yaml[role] yml = ERB.new(template).result(binding) tempfile_path = Tempfile.open("manifest_#{role}") do |t| t.write yml