Class: Spring::Client::Start

Inherits:
Command
  • Object
show all
Defined in:
lib/spring/client/start.rb

Instance Attribute Summary

Attributes inherited from Command

#args, #env

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

call, #initialize

Constructor Details

This class inherits a constructor from Spring::Client::Command

Class Method Details

.descriptionObject



4
5
6
# File 'lib/spring/client/start.rb', line 4

def self.description
  "Boot the spring server (this happens automatically when you run a command)"
end

Instance Method Details

#callObject



8
9
10
11
12
13
14
# File 'lib/spring/client/start.rb', line 8

def call
  # Require spring/server before bundler so that it doesn't have to be in
  # the bundle
  require "spring/server"
  require "bundler/setup"
  Spring::Server.boot
end