class

PlaceOS::Model::Executable

Inherits JSON::Serializable < Reference < Object

Information pertaining to a driver binary

Constants

INFO_EXT = ".info"

Constructors

new(entrypoint : String, commit : String, digest : String, crystal_version)
Source
new(pull : JSON::PullParser)
Source
new(filename : String)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

encoded_directory(entrypoint)
Source
glob(entrypoint : String | Nil, commit : String | Nil, digest : String | Nil, crystal_version : SemanticVersion | String | Nil)

Produces a glob to match relevant executables

Source
name(entrypoint)
Source
normalized_commit(commit : String)

The default short commit hash is 7 characters

Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

commit
Source
crystal_version
Source
digest
Source
encoded_directory
Source
entrypoint

entrypoint is the entrypoint to the file relative to its shard.yml

Source
filename
Source
hash(hasher)

See Object#hash(hasher)

info_filename
Source
name
Source
to_s(io)
Source

Nested types