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) #

def self.new(pull : JSON::PullParser) #

def self.new(filename : String) #

Class Method Detail

def self.encoded_directory(entrypoint) #

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

Produces a glob to match relevant executables


def self.name(entrypoint) #

def self.normalized_commit(commit : String) #

The default short commit hash is 7 characters


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 #

def crystal_version : SemanticVersion #

def digest : String #

def encoded_directory : String #

def entrypoint : String #

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


def filename : String #

def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def info_filename : String #

def name : String #

def to_s(io) #