Class: Flue::Runner
- Inherits:
-
Object
- Object
- Flue::Runner
- Defined in:
- lib/flue/runner.rb
Constant Summary
Constants included from Logger
Instance Method Summary collapse
Methods included from Logger
Methods included from Benchmark
Instance Method Details
#files ⇒ Object
9 10 11 |
# File 'lib/flue/runner.rb', line 9 def files Dir["site/[^_]*"] - Dir["site/*.yml"] end |
#run ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/flue/runner.rb', line 13 def run logger.info "beginning run..." files.each do |file| basefile = Basefile.new(file) File.open(basefile.outfile_name, "w") do |f| benchmark "#{basefile.basename} => #{basefile.outfile_name}" do = {} data = basefile.datafile if data [:variables] = YAML.load(data) end f.write FilterRegister.run(basefile.exts, basefile.content, ) end end end end |