Sha256: 2e1f67b5555ddcd4733b09c5ea1509fba76f539a84b405b245a8e7dceccd7f8c
Contents?: true
Size: 704 Bytes
Versions: 5
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
5 entries across 5 versions & 1 rubygems