Class: RubyServiceHelper
- Inherits:
-
Win32::Daemon
- Object
- Win32::Daemon
- RubyServiceHelper
- Defined in:
- lib/ruby_service_helper.rb
Constant Summary collapse
- Version =
VERSION = '0.1.0'
Class Attribute Summary collapse
-
.service ⇒ Object
Returns the value of attribute service.
-
.shutdown ⇒ Object
Returns the value of attribute shutdown.
Class Method Summary collapse
Instance Method Summary collapse
-
#service_main ⇒ Object
:nodoc:.
-
#service_stop ⇒ Object
:nodoc:.
Class Attribute Details
.service ⇒ Object
Returns the value of attribute service.
11 12 13 |
# File 'lib/ruby_service_helper.rb', line 11 def service @service end |
.shutdown ⇒ Object
Returns the value of attribute shutdown.
11 12 13 |
# File 'lib/ruby_service_helper.rb', line 11 def shutdown @shutdown end |
Class Method Details
.start ⇒ Object
17 18 19 |
# File 'lib/ruby_service_helper.rb', line 17 def self.start self.mainloop end |
.version ⇒ Object
9 |
# File 'lib/ruby_service_helper.rb', line 9 def self.version; Version; end |
Instance Method Details
#service_main ⇒ Object
:nodoc:
21 22 23 |
# File 'lib/ruby_service_helper.rb', line 21 def service_main #:nodoc: self.class.service.call end |
#service_stop ⇒ Object
:nodoc:
25 26 27 |
# File 'lib/ruby_service_helper.rb', line 25 def service_stop #:nodoc: self.class.shutdown.call end |