class PlaceOS::Model::Executable
- PlaceOS::Model::Executable
- Reference
- Object
Overview
Information pertaining to a driver binary
Included Modules
- JSON::Serializable
Defined in:
placeos-models/executable.crConstant Summary
-
INFO_EXT =
".info"
Constructors
- .new(entrypoint : String, commit : String, digest : String, crystal_version)
- .new(pull : JSON::PullParser)
- .new(filename : String)
Class Method Summary
- .encoded_directory(entrypoint)
-
.glob(entrypoint : String | Nil, commit : String | Nil, digest : String | Nil, crystal_version : SemanticVersion | String | Nil)
Produces a glob to match relevant executables
- .name(entrypoint)
-
.normalized_commit(commit : String)
The default short commit hash is 7 characters
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. - #commit : String
- #crystal_version : SemanticVersion
- #digest : String
- #encoded_directory : String
-
#entrypoint : String
#entrypoint
is the entrypoint to the file relative to itsshard.yml
- #filename : String
-
#hash(hasher)
See
Object#hash(hasher)
- #info_filename : String
- #name : String
- #to_s(io)
Constructor Detail
Class Method Detail
def self.glob(entrypoint : String | Nil, commit : String | Nil, digest : String | Nil, crystal_version : SemanticVersion | String | Nil)
#
Produces a glob to match relevant executables
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.