Sha256: 6ef5cdfc17852ff41a2c5db7e332e6db74e926c8c61969825f43dd306e29d978
Contents?: true
Size: 764 Bytes
Versions: 1
Compression:
Stored size: 764 Bytes
Contents
namespace :deploy do task :write_info do on roles(fetch(:deployinfo_roles)) do within fetch(:deployinfo_path) do tag = { app: fetch(:application), deployed_at: Time.now, branch: fetch(:branch), user: local_user.strip, sha: fetch(:current_revision), release: release_timestamp } tag_path = current_path.join(fetch(:deployinfo_dir), fetch(:deployinfo_filename)) execute %{echo '#{tag.to_json}' > #{tag_path}} end end end after 'deploy:published', 'deploy:write_info' end namespace :load do task :defaults do set :deployinfo_roles, :all set :deployinfo_dir, 'public' set :deployinfo_filename, 'deploy.json' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-deployinfo-1.0.0 | lib/capistrano/tasks/deployinfo.rake |