Module: Eye::Patch
- Defined in:
- lib/eye/patch/version.rb,
lib/eye/patch/settings.rb,
lib/eye/patch/group_set.rb,
lib/eye/patch/option_set.rb,
lib/eye/patch/application.rb,
lib/eye/patch/process_set.rb,
lib/eye/patch/value_parser.rb,
lib/eye/patch.rb
Defined Under Namespace
Classes: Application, Config, GroupSet, OptionSet, ProcessSet, Settings, ValueParser
Constant Summary collapse
- VERSION =
"0.1.8"
Class Method Summary collapse
Class Method Details
.parse(filename) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/eye/patch.rb', line 17 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 |