Sha256: abfd8b3c8ab84677096dd76ec2f0e6a07aaedb6a67cd2f98a199bad9ad1a1ac6
Contents?: true
Size: 889 Bytes
Versions: 3
Compression:
Stored size: 889 Bytes
Contents
# frozen_string_literal: true require "eye" require "eye/patch/overrides" Eye::Notify::TYPES[:ses] = "SES" Eye::Notify::TYPES[:aws_sdk] = "AWSSDK" Eye::Notify::TYPES[:datadog] = "DataDog" module Eye class Notify autoload :SES, "eye/notify/ses" autoload :AWSSDK, "eye/notify/awssdk" autoload :DataDog, "eye/notify/datadog" end end module Eye::Patch require "eye/patch/settings" require "eye/patch/config" require "eye/patch/application" require "eye/patch/version" def self.parse(filename) settings = Settings.new(filename) config = ::Eye::Config.new( Config.new(settings), Application.new(settings), ) config.validate! config.applications.values.each do |application| next unless application[:setup_file] require File.join(application[:working_dir], application[:setup_file]) end config end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
eye-patch-1.1.0 | lib/eye/patch.rb |
eye-patch-1.0.1 | lib/eye/patch.rb |
eye-patch-1.0.0 | lib/eye/patch.rb |