Class: Win::Service

Inherits:
Object
  • Object
show all
Includes:
ServiceController
Defined in:
lib/win/service.rb

Constant Summary collapse

VERSION =
'0.1.0'

Instance Method Summary collapse

Methods included from ServiceController

included

Constructor Details

#initialize(service_name, service_address, user_name, user_password) ⇒ Service

Returns a new instance of Service.



9
10
11
12
13
14
# File 'lib/win/service.rb', line 9

def initialize(service_name, service_address, user_name, user_password)
  @name = service_name
  @host = service_address
  @user = user_name
  @password = user_password
end

Instance Method Details

#pauseObject



24
25
26
# File 'lib/win/service.rb', line 24

def pause
  pause_service
end

#resumeObject



28
29
30
# File 'lib/win/service.rb', line 28

def resume
  resume_service
end

#startObject



16
17
18
# File 'lib/win/service.rb', line 16

def start
  start_service
end

#statusObject



32
33
34
# File 'lib/win/service.rb', line 32

def status
  service_status
end

#stopObject



20
21
22
# File 'lib/win/service.rb', line 20

def stop
  stop_service
end