lib/shuttle/strategy.rb in shuttle-deploy-0.2.0.beta13 vs lib/shuttle/strategy.rb in shuttle-deploy-0.2.0.beta14
- old
+ new
@@ -182,10 +182,14 @@
if ssh.run("ln -s #{release_path} #{current_path}").failure?
error "Unable to create symlink to current path"
end
+ # Write version into RELEASE file
+ write_release
+
+ # Write version into current version file
ssh.run "echo #{version} > #{version_path}"
log "Release v#{version} has been deployed"
# Execute after link_release hook, allow failures here
@@ -237,9 +241,13 @@
if command
ssh.run("cd #{scm_path} && #{command} > #{release_path}/REVISION")
end
end
+ end
+
+ def write_release
+ ssh.run("echo #{version} > #{release_path}/RELEASE")
end
def export_environment
ssh.export_hash(
'DEPLOY_APP' => config.app.name,
\ No newline at end of file