class Devkitkat::Service
Constants
- DIVISIONS
- SERVICE_PROPERTIES
Attributes
command[R]
config[R]
executor[R]
name[R]
Public Class Methods
new(name, config, command)
click to toggle source
# File lib/devkitkat/service.rb, line 13 def initialize(name, config, command) @name, @config, @command = name, config, command end
Public Instance Methods
dir()
click to toggle source
# File lib/devkitkat/service.rb, line 41 def dir File.join(root_dir, name) end
execute()
click to toggle source
# File lib/devkitkat/service.rb, line 17 def execute Executor.new(self).execute end
log_path()
click to toggle source
# File lib/devkitkat/service.rb, line 45 def log_path File.join(log_dir, "#{command.script}.log") end
machine_driver()
click to toggle source
# File lib/devkitkat/service.rb, line 63 def machine_driver config.service_hash(name).dig('machine', 'driver') end
root_dir()
click to toggle source
# File lib/devkitkat/service.rb, line 37 def root_dir File.join(command.kit_root, 'services') end
script_path()
click to toggle source
# File lib/devkitkat/service.rb, line 49 def script_path File.join(script_dir, command.script) end
system?()
click to toggle source
# File lib/devkitkat/service.rb, line 53 def system? name == 'system' end