Sha256: ce06291e98e0a37dc503b8244dfec3c3e4baf55e0fb9552ce69ba117115b1d80
Contents?: true
Size: 888 Bytes
Versions: 1
Compression:
Stored size: 888 Bytes
Contents
# frozen_string_literal: true # This file contains patches to provide backwards compatibility with version 2 # of the pagerduty gem. On the release of the next major version (4.0) it will # be deleted, thus breaking backwards compatibility. PagerdutyIncident = Pagerduty::EventsApiV1::Incident Pagerduty::EventsApiV1::Incident.class_eval do def service_key @integration_key end end Pagerduty::EventsApiV1.class_eval do alias_method :get_incident, :incident def service_key @config[:integration_key] end end Pagerduty.class_eval do def self.new(service_key, options = {}) build( integration_key: service_key, api_version: 1, http_proxy: { host: options[:proxy_host], port: options[:proxy_port], username: options[:proxy_username], password: options[:proxy_password], }, ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pagerduty-3.0.0 | lib/pagerduty/legacy.rb |