Sha256: bbc513c78dc9675e0e4e0b9ae74b722512197ab034f8cb28f72688b6ec2e77d2
Contents?: true
Size: 704 Bytes
Versions: 12
Compression:
Stored size: 704 Bytes
Contents
module Appsignal class Marker attr_reader :marker_data, :config ACTION = 'markers' def initialize(marker_data, config) @marker_data = marker_data @config = config end def transmit transmitter = Transmitter.new(ACTION, config) puts "Notifying AppSignal of deploy with: "\ "revision: #{marker_data[:revision]}, user: #{marker_data[:user]}" result = transmitter.transmit(marker_data) if result == '200' puts 'AppSignal has been notified of this deploy!' else raise "#{result} at #{transmitter.uri}" end rescue => e puts "Something went wrong while trying to notify AppSignal: #{e}" end end end
Version data entries
12 entries across 12 versions & 1 rubygems