class PlaceOS::Core::DriverResource
- PlaceOS::Core::DriverResource
- PlaceOS::Resource(PlaceOS::Model::Driver)
- Reference
- Object
Defined in:
placeos-core/driver_manager.crConstructors
Class Method Summary
- .load(driver : Model::Driver, store : DriverStore, startup : Bool = false, module_manager : ModuleManager = ModuleManager.instance) : Core::Result
-
.remove_stale_driver(path : Path | Nil, driver_id : String)
Remove the stale driver binary if there was one
- .update_driver_commit(driver : Model::Driver, commit : String, startup : Bool)
Instance Method Summary
- #process_resource(action : Resource::Action, resource driver : Model::Driver) : Resource::Result
- #start
Constructor Detail
def self.new(startup : Bool = true, binary_dir : String = "#{Dir.current}/bin/drivers", module_manager : ModuleManager = ModuleManager.instance)
#
Class Method Detail
def self.load(driver : Model::Driver, store : DriverStore, startup : Bool = false, module_manager : ModuleManager = ModuleManager.instance) : Core::Result
#
def self.remove_stale_driver(path : Path | Nil, driver_id : String)
#
Remove the stale driver binary if there was one
def self.update_driver_commit(driver : Model::Driver, commit : String, startup : Bool)
#
Instance Method Detail
def process_resource(action : Resource::Action, resource driver : Model::Driver) : Resource::Result
#