I needed similar variables to be available for my recipes (comment and revision) and modified lib/webistrano/deployer.rb for that:
def set_project_and_stage_names(config)
config.set(:webistrano_project, deployment.stage.project.webistrano_project_name)
config.set(:webistrano_stage, deployment.stage.webistrano_stage_name)
+ config.set(:webistrano_comment, deployment.description)
+ config.set(:webistrano_revision, deployment.revision)
end
I suspect you can do the same for the status, possible for the user as well.
Hope this helps,
Pieter.
The stage and project are available by default. The patch above will
give you the comment and revision. The user would work similarly. The
status is a different thing as it is not available yet when those
values are asked for.
Jonathan
--
Jonathan Weiss
http://blog.innerewut.de
http://twitter.com/jweiss