lib/ridgepole/dsl_parser.rb in ridgepole-0.5.2.beta3 vs lib/ridgepole/dsl_parser.rb in ridgepole-0.5.2.beta4

- old
+ new

@@ -119,10 +119,10 @@ :options => options, } end def require(file) - schemafile = File.join(@__working_dir, file) + schemafile = (file =~ %r|\A/|) ? file : File.join(@__working_dir, file) if File.exist?(schemafile) instance_eval(File.read(schemafile), schemafile) elsif File.exist?(schemafile + '.rb') instance_eval(File.read(schemafile + '.rb'), schemafile + '.rb')