class RuneRb::System::Types::Service
A {Service} object is a managed process that executes code and communicates it's state (and various other data) back to it's host process.
Attributes
settings[R]
@!attribute [r] @return [Hash] settings related to the service
Public Class Methods
new(options = { auto_restart: true })
click to toggle source
Constructs a new {Service} object.
# File deployment/app/system/types/service.rb, line 12 def initialize(options = { auto_restart: true }) @settings = options setup end
Public Instance Methods
launch()
click to toggle source
Launches the {Service}. @abstract subclass {Service} and override {Service#launch}.
# File deployment/app/system/types/service.rb, line 19 def launch; end
shutdown()
click to toggle source
Shut the {Service} down. @abstract subclass {Service} and override {Service#shutdown}.
# File deployment/app/system/types/service.rb, line 23 def shutdown; end
Private Instance Methods
setup()
click to toggle source
Set the {Service} up. @private @abstract subclass {Service} and override {Service#setup}
# File deployment/app/system/types/service.rb, line 30 def setup; end