Sha256: 4562ebf09b8e067dd5e2e74fe369a129a9dcdd793a5430c11b2897132b52c3d5

Contents?: true

Size: 847 Bytes

Versions: 1

Compression:

Stored size: 847 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
eye-patch-0.5.0 lib/eye/patch.rb