class

PlaceOS::Core::DriverResource

Inherits PlaceOS::Resource < Reference < Object

Constructors

new(startup : Bool = true, binary_dir : String = "#{Dir.current}/bin/drivers", module_manager : ModuleManager = ModuleManager.instance)
Source

Class methods

load(driver : Model::Driver, store : DriverStore, startup : Bool = false, module_manager : ModuleManager = ModuleManager.instance) : Core::Result
Source
remove_driver(driver : Model::Driver, store : DriverStore)
Source
remove_stale_driver(path : Path | Nil, driver_id : String)

Remove the stale driver binary if there was one

Source
update_driver_commit(driver : Model::Driver, commit : String, startup : Bool)
Source

Instance methods

process_resource(action : Resource::Action, resource driver : Model::Driver) : Resource::Result
Source
start
Source
start_driver_jobs
Source
stop
Source