Class: MoCo::Application
- Inherits:
-
Object
- Object
- MoCo::Application
- Defined in:
- lib/moco/application.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options) ⇒ Application
constructor
A new instance of Application.
- #monitor_compile_and_reload ⇒ Object
Constructor Details
#initialize(options) ⇒ Application
Returns a new instance of Application.
10 11 12 |
# File 'lib/moco/application.rb', line 10 def initialize() @options = end |
Class Method Details
.monitor_compile_and_reload(args) ⇒ Object
5 6 7 8 |
# File 'lib/moco/application.rb', line 5 def self.monitor_compile_and_reload(args) = (args) new().monitor_compile_and_reload end |
Instance Method Details
#monitor_compile_and_reload ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/moco/application.rb', line 14 def monitor_compile_and_reload monitor = monitor_instance monitor.files.each { |file| compile(file, @options[:force]) } reload if @options[:monitor] Log.monitor monitor.monitor { |file| compile_and_reload(file) } puts end end |