Sha256: c77b02f3ce3af8deab487cfe0be890247a15b5bc20e48ace9450784262715147
Contents?: true
Size: 1.54 KB
Versions: 4
Compression:
Stored size: 1.54 KB
Contents
require_relative '../lib/trop' if ENV['CI'].nil? require 'sentry-raven' Raven.configure do |config| # config.silence_ready = true # unless Shell.cwd envtest = ENV['SENTRY_DSN'] || 'https://1119c5fd4e7e47b7948c62b22b182fdf@sentry.io/1448013' config.dsn = envtest config.release = Trop::InfoGit::GitProject.commit_id config.ssl_verification = false puts "Using dsn #{envtest}".yellow #if Shell.verbose? # puts "with comit-id: #{InfoGit::GitProject.commit_id}".yellow if Shell.verbose? end end namespace :raven do desc 'trigger a dummy event on sentry' task :trigger do return 1 / 0 end end # desc 'register a version to sentry' # task :deploy do # curl http://worker.hbi.ad.harman.com:9000/api/hooks/release/builtin/2/1947c904f6a75a932b0110940151fb12460b699ae1cbb5079c095675197d47e4/ # commit_id = InfoGit::GitProject.commit_id # cmd = <<-EOF.tr!("\n", ' ') # curl https://sentry.io/api/hooks/release/builtin/1272992/43a5fce123b9c2f2b8f799489ff49f07ffb615d79e37114e3f29fb03f1e06150/ # -X POST # -H 'Content-Type: application/json' # -d '{"version": "#{commit_id}"}' # EOF # puts cmd # system cmd# # sh (' # ACCESS_TOKEN=0e63f4a39ce44cf48fb1cc94c75b0ea8 # ENVIRONMENT=production # LOCAL_USERNAME=`whoami` # REVISION=`git log -n 1 --pretty=format:"%H"` # curl https://api.rollbar.com/api/1/deploy/ \ # -F access_token=$ACCESS_TOKEN \ # -F environment=$ENVIRONMENT \ # -F revision=$REVISION \ # -F local_username=$LOCAL_USERNAME') # end #end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
trop-0.7.0 | rakelib/raven.rake |
trop-0.6.19 | rakelib/raven.rake |
trop-0.6.1 | rakelib/raven.rake |
trop-0.5.33 | rakelib/raven.rake |