Module: Eye::Controller::Load

Includes:
Dsl::Validate
Included in:
Eye::Controller
Defined in:
lib/eye/controller/load.rb

Instance Method Summary collapse

Methods included from Dsl::Validate

#validate

Instance Method Details

#check(filename = '') ⇒ Object



4
5
6
7
8
# File 'lib/eye/controller/load.rb', line 4

def check(filename = '')
  catch_load_error(filename) do
    parse_config(filename)
  end
end

#explain(filename) ⇒ Object



10
11
12
13
14
# File 'lib/eye/controller/load.rb', line 10

def explain(filename)
  catch_load_error(filename) do
    parse_set_of_configs(filename)
  end
end

#load(filename = '') ⇒ Object

filename is a path, or folder, or mask



17
18
19
20
21
22
# File 'lib/eye/controller/load.rb', line 17

def load(filename = '')
  catch_load_error(filename) do
    _load(filename)
    set_proc_line
  end
end