Method: Spring::Client::Run#warm_run

Defined in:
lib/spring/client/run.rb

#warm_runObject



36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/spring/client/run.rb', line 36

def warm_run
  run
rescue CommandNotFound
  require "spring/commands"

  if Spring.command?(args.first)
    # Command installed since spring started
    stop_server
    cold_run
  else
    raise
  end
end