Class: Spring::Commands::RailsServer

Inherits:
Object
  • Object
show all
Defined in:
lib/spring/commands/rails_server.rb

Instance Method Summary collapse

Instance Method Details

#callObject



20
21
22
23
# File 'lib/spring/commands/rails_server.rb', line 20

def call
  ARGV.unshift("server")
  load Dir.glob(::Rails.root.join("{bin,script}/rails")).first
end

#command_nameObject



8
9
10
# File 'lib/spring/commands/rails_server.rb', line 8

def command_name
  "rails"
end

#envObject



4
5
6
# File 'lib/spring/commands/rails_server.rb', line 4

def env(*)
  "development"
end

#exec_nameObject



12
13
14
# File 'lib/spring/commands/rails_server.rb', line 12

def exec_name
  "rails"
end

#gem_nameObject



16
17
18
# File 'lib/spring/commands/rails_server.rb', line 16

def gem_name
  "rails"
end