Sha256: 79fecf75b1bddbea5ce845673bd9798972d8093be54a4895e5da0338bd5895c8
Contents?: true
Size: 871 Bytes
Versions: 1
Compression:
Stored size: 871 Bytes
Contents
require 'deploytracking' Capistrano::Configuration.instance(:must_exist).load do after "deploy", "deploy:track" after "deploy:migrations", "deploy:track" namespace :deploy do desc "Send deployment to deploytracker.com" task :track, :except => { :no_release => true } do data = {} data['user_email'] = fetch(:email, `git config --get user.email`.chomp) data['github_username'] = fetch(:github_username, `git config --get github.user`.chomp) data['environment'] = fetch(:rails_env, "production") data['revision'] = fetch(:current_revision) data['repository'] = fetch(:repository) data['source'] = fetch(:deploy_source, 'capistrano') data['branch'] = fetch(:branch, 'master') DeployTracking.notify(fetch(:deploy_tracking_api_key), data) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
deploytracking-0.0.8 | lib/deploytracking/capistrano.rb |