Class: Guard::RailsServer

Inherits:
Plugin
  • Object
show all
Defined in:
lib/guard/rails_server.rb

Constant Summary collapse

VERSION =
"0.1.0"

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ RailsServer

Returns a new instance of RailsServer.



7
8
9
# File 'lib/guard/rails_server.rb', line 7

def initialize(options = {})
  super
end

Instance Method Details

#reloadObject



19
20
21
# File 'lib/guard/rails_server.rb', line 19

def reload
  restart
end

#run_allObject



23
24
25
26
27
# File 'lib/guard/rails_server.rb', line 23

def run_all
  Compat::UI.info "Restart Rails Server"

  restart
end

#run_on_change(paths) ⇒ Object



29
30
31
# File 'lib/guard/rails_server.rb', line 29

def run_on_change(paths)
  restart
end

#startObject



11
12
13
# File 'lib/guard/rails_server.rb', line 11

def start
  Compat::UI.info "Guard::RailsServer is running"
end

#stopObject



15
16
17
# File 'lib/guard/rails_server.rb', line 15

def stop
  true
end