class Guard::RailsServer
Constants
- VERSION
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
# File lib/guard/rails_server.rb, line 7 def initialize(options = {}) super end
Public Instance Methods
reload()
click to toggle source
# File lib/guard/rails_server.rb, line 19 def reload restart end
run_all()
click to toggle source
# File lib/guard/rails_server.rb, line 23 def run_all Compat::UI.info "Restart Rails Server" restart end
run_on_change(paths)
click to toggle source
# File lib/guard/rails_server.rb, line 29 def run_on_change(paths) restart end
start()
click to toggle source
# File lib/guard/rails_server.rb, line 11 def start Compat::UI.info "Guard::RailsServer is running" end
stop()
click to toggle source
# File lib/guard/rails_server.rb, line 15 def stop true end
Private Instance Methods
cmd()
click to toggle source
# File lib/guard/rails_server.rb, line 38 def cmd options[:cmd] || "bin/rails restart" end
restart()
click to toggle source
# File lib/guard/rails_server.rb, line 34 def restart system(cmd) end