Class: IronHammer::Deploy::WindowsService
- Inherits:
-
Object
- Object
- IronHammer::Deploy::WindowsService
- Defined in:
- lib/iron_hammer/deploy/windows_service.rb
Instance Method Summary collapse
-
#initialize(ole_service) ⇒ WindowsService
constructor
A new instance of WindowsService.
- #start! ⇒ Object
- #state ⇒ Object
- #stop! ⇒ Object
Constructor Details
#initialize(ole_service) ⇒ WindowsService
Returns a new instance of WindowsService.
6 7 8 |
# File 'lib/iron_hammer/deploy/windows_service.rb', line 6 def initialize ole_service @service = ole_service end |
Instance Method Details
#start! ⇒ Object
10 11 12 |
# File 'lib/iron_hammer/deploy/windows_service.rb', line 10 def start! @service.StartService end |
#state ⇒ Object
18 19 20 |
# File 'lib/iron_hammer/deploy/windows_service.rb', line 18 def state @service.State end |
#stop! ⇒ Object
14 15 16 |
# File 'lib/iron_hammer/deploy/windows_service.rb', line 14 def stop! @service.StopService end |