Class: Texas::Build::Task::RewriteMarkedTemplates

Inherits:
Base
  • Object
show all
Defined in:
lib/texas/build/task/rewrite_marked_templates.rb

Instance Attribute Summary

Attributes inherited from Base

#build

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from OutputHelper

#trace, #verbose, #warning

Constructor Details

This class inherits a constructor from Texas::Build::Task::Base

Instance Method Details

#runObject


5
6
7
# File 'lib/texas/build/task/rewrite_marked_templates.rb', line 5

def run
  templates.each { |t| t.write }
end

#templatesObject


9
10
11
# File 'lib/texas/build/task/rewrite_marked_templates.rb', line 9

def templates
  build.ran_templates.uniq.select { |t| t.marked_for_rewrite? }
end