Webistrano の Recipe で特定の変数を使う
@@ -212,6 +212,7 @@ 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_user, deployment.user.login) unless deployment.user.nil? end # casts a given string to the correct Ruby value
とか割り当てると、レシピで任意の情報が使えるみたい
- http://groups.google.com/group/webistrano/browse_thread/thread/52c90bd4742db1d2
- unless deployment.user.nil? で確かめないと、レシピ自体はうまくいくが、stage の task を load する処理で失敗する