class PlaceOS::Core::DriverResource

Defined in:

placeos-core/driver_manager.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

[View source]

Class Method Detail

def self.load(driver : Model::Driver, store : DriverStore, startup : Bool = false, module_manager : ModuleManager = ModuleManager.instance) : Core::Result #

[View source]
def self.remove_stale_driver(path : Path | Nil, driver_id : String) #

Remove the stale driver binary if there was one


[View source]
def self.update_driver_commit(driver : Model::Driver, commit : String, startup : Bool) #

[View source]

Instance Method Detail

def process_resource(action : Resource::Action, resource driver : Model::Driver) : Resource::Result #

[View source]
def start #

[View source]