Sha256: f78559f2314a781543f297f7c541855c28eb26d0c536b0d852f35e1fe33cd4c6
Contents?: true
Size: 632 Bytes
Versions: 6
Compression:
Stored size: 632 Bytes
Contents
# Capistrano tasks for notifying Opbeat of deploys namespace :opbeat do desc "Notify Opbeat of a new deploy." task :deployment do if defined?(::Rails.root) initializer_file = ::Rails.root.join('config', 'initializers','opbeat.rb') if initializer_file.exist? load initializer_file else Rake::Task[:environment].invoke end end rev = ENV['REV'] unless rev puts "No revision given. Set environment variable REV." else data = {'rev' => ENV['REV'], 'branch' => ENV['BRANCH'], 'status' => 'completed'} Opbeat::client.send_release(data) end end end
Version data entries
6 entries across 6 versions & 2 rubygems