Sha256: 5ccde03db6eac579051a883ea62117e63a118953b00c3352320bf3271707a7ea

Contents?: true

Size: 705 Bytes

Versions: 12

Compression:

Stored size: 705 Bytes

Contents

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

begin
  require "eye/notify/ses"
rescue LoadError
  # Don't worry about loading the ses notifier when `aws/ses` is unavailable
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

12 entries across 12 versions & 1 rubygems

Version Path
eye-patch-0.2.2 lib/eye/patch.rb
eye-patch-0.2.1 lib/eye/patch.rb
eye-patch-0.2.0 lib/eye/patch.rb
eye-patch-0.1.8 lib/eye/patch.rb
eye-patch-0.1.7 lib/eye/patch.rb
eye-patch-0.1.6 lib/eye/patch.rb
eye-patch-0.1.5 lib/eye/patch.rb
eye-patch-0.1.4 lib/eye/patch.rb
eye-patch-0.1.3 lib/eye/patch.rb
eye-patch-0.1.2 lib/eye/patch.rb
eye-patch-0.1.1 lib/eye/patch.rb
eye-patch-0.1.0 lib/eye/patch.rb