Class: Spring::Commands::RailsServer
- Inherits:
-
Object
- Object
- Spring::Commands::RailsServer
- Defined in:
- lib/spring/commands/rails_server.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
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_name ⇒ Object
8 9 10 |
# File 'lib/spring/commands/rails_server.rb', line 8 def command_name "rails" end |
#env ⇒ Object
4 5 6 |
# File 'lib/spring/commands/rails_server.rb', line 4 def env(*) "development" end |
#exec_name ⇒ Object
12 13 14 |
# File 'lib/spring/commands/rails_server.rb', line 12 def exec_name "rails" end |
#gem_name ⇒ Object
16 17 18 |
# File 'lib/spring/commands/rails_server.rb', line 16 def gem_name "rails" end |