Method: Connect::Dsl#include_file
- Defined in:
- lib/connect/dsl.rb
#include_file(names, scope = nil) ⇒ Object
include the specfied file in the parse process.
189 190 191 192 193 194 195 196 197 198 199 200 |
# File 'lib/connect/dsl.rb', line 189 def include_file(names, scope = nil) in_scope(scope) do names = interpolated_value(names) @includer.include(names) do |content, file_name| push_current_parse_state @current_file = file_name Connect.debug "parsing Connect config file #{file_name}." scan_str(content) unless empty_definition?(content) pop_current_parse_state end end end |