Class: Ralph::Output::ActiveLoopError

Inherits:
Object
  • Object
show all
Defined in:
lib/ralph/output/active_loop_error.rb

Class Method Summary collapse

Class Method Details

.call(existing_state, path:) ⇒ Object



6
7
8
9
10
# File 'lib/ralph/output/active_loop_error.rb', line 6

def self.call(existing_state, path:)
  $stderr.puts "Error: A Ralph loop is already active (iteration #{existing_state.iteration})"
  $stderr.puts "Started at: #{existing_state.started_at}"
  $stderr.puts "To cancel it, press Ctrl+C in its terminal or delete #{path}"
end