Method: Spring::Application#setup

Defined in:
lib/spring/application.rb

#setup(command) ⇒ Object

The command might need to require some files in the main process so that they are cached. For example a test command wants to load the helper file once and have it cached.



233
234
235
236
237
# File 'lib/spring/application.rb', line 233

def setup(command)
  if command.setup
    watcher.add loaded_application_features # loaded features may have changed
  end
end