Class: EmberCli::BuildMonitor
- Inherits:
-
Object
- Object
- EmberCli::BuildMonitor
- Defined in:
- lib/ember_cli/build_monitor.rb
Instance Method Summary collapse
- #check! ⇒ Object
-
#initialize(name, paths) ⇒ BuildMonitor
constructor
A new instance of BuildMonitor.
- #reset ⇒ Object
- #wait! ⇒ Object
Constructor Details
#initialize(name, paths) ⇒ BuildMonitor
Returns a new instance of BuildMonitor.
3 4 5 6 |
# File 'lib/ember_cli/build_monitor.rb', line 3 def initialize(name, paths) @name = name @paths = paths end |
Instance Method Details
#check! ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/ember_cli/build_monitor.rb', line 8 def check! if has_build_errors? raise_build_error! end true end |
#reset ⇒ Object
16 17 18 19 20 |
# File 'lib/ember_cli/build_monitor.rb', line 16 def reset if error_file_exists? error_file.delete end end |
#wait! ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/ember_cli/build_monitor.rb', line 22 def wait! loop do check! break if complete? sleep 0.1 end end |