Class: Win::Service
- Inherits:
-
Object
- Object
- Win::Service
- Includes:
- ServiceController
- Defined in:
- lib/win/service.rb
Constant Summary collapse
- VERSION =
'0.1.0'
Instance Method Summary collapse
-
#initialize(service_name, service_address, user_name, user_password) ⇒ Service
constructor
A new instance of Service.
- #pause ⇒ Object
- #resume ⇒ Object
- #start ⇒ Object
- #status ⇒ Object
- #stop ⇒ Object
Methods included from ServiceController
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
#pause ⇒ Object
24 25 26 |
# File 'lib/win/service.rb', line 24 def pause pause_service end |
#resume ⇒ Object
28 29 30 |
# File 'lib/win/service.rb', line 28 def resume resume_service end |
#start ⇒ Object
16 17 18 |
# File 'lib/win/service.rb', line 16 def start start_service end |
#status ⇒ Object
32 33 34 |
# File 'lib/win/service.rb', line 32 def status service_status end |
#stop ⇒ Object
20 21 22 |
# File 'lib/win/service.rb', line 20 def stop stop_service end |