Sha256: f330332e6d0bff42914d7f4c72d30dbd89ea1481d9a274da736de0a0845e024c

Contents?: true

Size: 762 Bytes

Versions: 5

Compression:

Stored size: 762 Bytes

Contents

require "eye"
require "eye/patch/overrides"

Eye::Notify::TYPES[:ses] = "SES"
Eye::Notify::TYPES[:aws_sdk] = "AWSSDK"

module Eye
  class Notify
    autoload :SES, "eye/notify/ses"
    autoload :AWSSDK, "eye/notify/awssdk"
  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

5 entries across 5 versions & 1 rubygems

Version Path
eye-patch-0.4.2 lib/eye/patch.rb
eye-patch-0.4.1 lib/eye/patch.rb
eye-patch-0.4.0 lib/eye/patch.rb
eye-patch-0.3.1 lib/eye/patch.rb
eye-patch-0.3.0 lib/eye/patch.rb