struct DPPM::Prefix::ProgramData::Task

Defined in:

prefix/program_data_task.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(vars : Hash(String, String), all_bin_paths : Array(Path)) #

Creates a new task runtime with variables and paths where to search binaries.


[View source]

Instance Method Detail

def ascii_alphanumeric_underscore?(string : String) #

[View source]
def executable?(cmd : String) : String? #

Returns the first executable matching cmd in .


[View source]
def execute(cmdline : String, last_cond : Bool = false) : String | Bool #

Methods from https://crystal-lang.org/api/Dir.html and https://crystal-lang.org/api/File.html

ameba:disable Metrics/CyclomaticComplexity


[View source]
def run(commands_array : Array) #

Run the commands.


[View source]
def vars : Hash(String, String) #

[View source]