lib/nanoc/extra/checking/dsl.rb in nanoc-4.1.0rc2 vs lib/nanoc/extra/checking/dsl.rb in nanoc-4.1.0
- old
+ new
@@ -3,10 +3,10 @@
class DSL
attr_reader :deploy_checks
def self.from_file(filename)
dsl = new
- dsl.instance_eval File.read(filename)
+ dsl.instance_eval(File.read(filename), filename)
dsl
end
def initialize
@deploy_checks = []