Class: IronHammer::Deploy::WindowsService

Inherits:
Object
  • Object
show all
Defined in:
lib/iron_hammer/deploy/windows_service.rb

Instance Method Summary collapse

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

#stateObject



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