有没有办法从 Capistrano 3 获取 git 修订变量?
我不知道如何访问 capistrano 变量:
namespace :deploy do
after :finished, :set_current_version do
on roles(:app) do
# dump current git version
within release_path do
execute :echo, "#{fetch(:revision_log_message)} >> public/version"
end
end
end
end