Method: IsoDoc::GemTasks.notify_borken_compilation
- Defined in:
- lib/isodoc/gem_tasks.rb
.notify_borken_compilation(error, current_task) ⇒ Object
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/isodoc/gem_tasks.rb', line 43 def notify_borken_compilation(error, current_task) puts("Cannot compile #{current_task} because of #{error.}") puts("continue anyway[y|n]?") answer = STDIN.gets.strip if %w[y yes].include?(answer.strip.downcase) puts("Cannot compile #{current_task} because of #{error.}") else exit(0) end end |