struct DPPM::Prefix::ProgramData::Task
- DPPM::Prefix::ProgramData::Task
- Struct
- Value
- Object
Defined in:
prefix/program_data_task.crConstructors
-
.new(vars : Hash(String, String), all_bin_paths : Array(Path))
Creates a new task runtime with variables and paths where to search binaries.
Instance Method Summary
- #ascii_alphanumeric_underscore?(string : String)
-
#executable?(cmd : String) : String?
Returns the first executable matching
cmd
in . -
#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
-
#run(commands_array : Array)
Run the commands.
- #vars : Hash(String, String)
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.
Instance Method Detail
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