Class: Texas::Task::Watch
Class Attribute Summary collapse
-
.run_options ⇒ Object
Returns the value of attribute run_options.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Texas::Task::Base
Class Attribute Details
.run_options ⇒ Object
Returns the value of attribute run_options.
7 8 9 |
# File 'lib/texas/task/watch.rb', line 7 def @run_options end |
Class Method Details
.directories_to_watch ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/texas/task/watch.rb', line 18 def self.directories_to_watch arr = [] arr << "tex" arr << "figures" arr << Texas.texas_dir arr end |
.rebuild ⇒ Object
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/texas/task/watch.rb', line 26 def self.rebuild started_at = Time.now.to_i @build = Build::Final.new() @build.run finished_at = Time.now.to_i puts (finished_at - started_at).to_s + " seconds to rebuild" rescue Exception => e puts @build.current_template.filename puts "[ERROR] while building \n#{e}" end |