Class: Guard::RailsServer
- Inherits:
-
Plugin
- Object
- Plugin
- Guard::RailsServer
- Defined in:
- lib/guard/rails_server.rb
Constant Summary collapse
- VERSION =
"0.1.0"
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ RailsServer
constructor
A new instance of RailsServer.
- #reload ⇒ Object
- #run_all ⇒ Object
- #run_on_change(paths) ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ RailsServer
Returns a new instance of RailsServer.
7 8 9 |
# File 'lib/guard/rails_server.rb', line 7 def initialize( = {}) super end |
Instance Method Details
#reload ⇒ Object
19 20 21 |
# File 'lib/guard/rails_server.rb', line 19 def reload restart end |
#run_all ⇒ Object
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 |
#start ⇒ Object
11 12 13 |
# File 'lib/guard/rails_server.rb', line 11 def start Compat::UI.info "Guard::RailsServer is running" end |
#stop ⇒ Object
15 16 17 |
# File 'lib/guard/rails_server.rb', line 15 def stop true end |