Class: LSync::ServerController
- Inherits:
-
BasicController
- Object
- BasicController
- LSync::ServerController
- Defined in:
- lib/lsync/controller.rb
Overview
The server controller provides event handlers with a unified interface for dealing with servers and associated actions.
Instance Attribute Summary collapse
-
#server ⇒ Object
readonly
The current server.
Attributes inherited from BasicController
Instance Method Summary collapse
-
#initialize(script, logger, server) ⇒ ServerController
constructor
A new instance of ServerController.
-
#run!(*function) ⇒ Object
Run a given shell script on the server.
Constructor Details
#initialize(script, logger, server) ⇒ ServerController
Returns a new instance of ServerController.
19 20 21 22 23 |
# File 'lib/lsync/controller.rb', line 19 def initialize(script, logger, server) super(script, logger) @server = server end |
Instance Attribute Details
#server ⇒ Object (readonly)
The current server.
26 27 28 |
# File 'lib/lsync/controller.rb', line 26 def server @server end |