class PlaceOS::Model::Executable

Overview

Information pertaining to a driver binary

Included Modules

Defined in:

placeos-models/executable.cr

Constant Summary

INFO_EXT = ".info"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(entrypoint : String, commit : String, digest : String, crystal_version) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(filename : String) #

[View source]

Class Method Detail

def self.encoded_directory(entrypoint) #

[View source]
def self.glob(entrypoint : String | Nil, commit : String | Nil, digest : String | Nil, crystal_version : SemanticVersion | String | Nil) #

Produces a glob to match relevant executables


[View source]
def self.name(entrypoint) #

[View source]
def self.normalized_commit(commit : String) #

The default short commit hash is 7 characters


[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

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


def commit : String #

[View source]
def crystal_version : SemanticVersion #

[View source]
def digest : String #

[View source]
def encoded_directory : String #

[View source]
def entrypoint : String #

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


[View source]
def filename : String #

[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def info_filename : String #

[View source]
def name : String #

[View source]
def to_s(io) #

[View source]