Is there a way how to fetch a git revision variable from Capistrano 3?
I can't figure out how to access capistrano variables:
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