module Barista::Behaviors::Omnibus::Task

Included Modules

Defined in:

barista/behaviors/omnibus/task.cr

Constructors

Instance Method Summary

Instance methods inherited from module Barista::Behaviors::Omnibus::PlatformEnv

with_destdir(env : Hash(String, String) | Nil = {} of String => String) with_destdir, with_embedded_path(env = {} of String => String) : Hash(String, String) with_embedded_path, with_standard_compiler_flags(env = {} of String => String, opts = {} of String => String) : Hash(String, String) with_standard_compiler_flags

Instance methods inherited from module Barista::Behaviors::Software::Task

block(name = nil, &block : -> ) block, build : Nil build, command(str : String, **args) command, commands commands, copy(src, dest, **args) copy, emit(str : String) emit, emit_error(str : String) emit_error, execute execute, link(src, dest, **args) link, mkdir(dir, **args) mkdir, patch(path : String, **args) patch, sync(src, dest, **args, &block : Merger::Strategy)
sync(src, dest, **args)
sync
, template(**args) template

Instance methods inherited from module Barista::Behaviors::Software::FileMacros

file(key : String) file

Macros inherited from module Barista::Behaviors::Software::FileMacros

file(key, path) file

Instance methods inherited from module Barista::Behaviors::Software::Emittable

collect_error(arr : Array(String)) collect_error, collect_output(arr : Array(String)) collect_output, forward_error(&block : String -> ) forward_error, forward_output(&block : String -> ) forward_output, on_error
on_error(&block : String -> Nil)
on_error
, on_output
on_output(&block : String -> Nil)
on_output

Instance methods inherited from module Barista::Behaviors::Software::OS::Information

kernel : Kernel.class kernel

Instance methods inherited from module Barista::Behaviors::Software::OS::PlatformFamily

aix? aix?, amazon? amazon?, arch? arch?, debian? debian?, fedora? fedora?, freebsd? freebsd?, gentoo? gentoo?, macos? macos?, netbsd? netbsd?, openbsd? openbsd?, platform_short_name platform_short_name, redhat_based? redhat_based?, rhel6? rhel6?, rhel7? rhel7?, rhel8? rhel8?, rhel? rhel?, rpm_based? rpm_based?, smartos? smartos?, solaris? solaris?, suse? suse?

Instance methods inherited from module Barista::Behaviors::Software::OS::Linux::Information

memory memory, platform platform

Macros inherited from module Barista::Behaviors::Omnibus::Macros

gen_collection_method(name, var_name, type) gen_collection_method, gen_method(name, type, &block) gen_method

Constructor Detail

def self.new(project : Barista::Behaviors::Omnibus::Project, callbacks : Barista::Behaviors::Omnibus::CacheCallbacks = Barista::Behaviors::Omnibus::CacheCallbacks.new) #

[View source]

Instance Method Detail

def barista_dir(*args, **options) #

[View source]
def barista_dir(*args, **options, &) #

[View source]
def bin(exe, command, **args) #

[View source]
def cache(val : Bool | Nil = nil) #

[View source]
def callbacks #

[View source]
def command(str : String, chdir : String = source_dir, **args) #

[View source]
abstract def configure : Nil #

[View source]
def copy(src, dest, chdir : String = source_dir, **args) #

[View source]
def execute #

[View source]
def fetching_dir #

[View source]
def install_dir(*args, **options) #

[View source]
def install_dir(*args, **options, &) #

[View source]
def license(val : String | Nil = nil) #

[View source]
def license_collector(*args, **options) #

[View source]
def license_collector(*args, **options, &) #

[View source]
def license_file(val : String) #

[View source]
def license_files #

def link(src, dest, chdir : String = source_dir, **args) #

[View source]
def local_source(location : String, **opts) #

Uses a local source


[View source]
def mkdir(dir, **args) #

[View source]
def patch(path : String, chdir : String = source_dir, **args) #

[View source]
def preserve_symlinks(val : Bool | Nil = nil) #

[View source]
def project #

[View source]
def relative_path(val : String | Nil = nil) #

[View source]
def restore #

[View source]
def shasum : String #

[View source]
def smart_install_dir #

[View source]
def source(location : String, **opts) #

Define the source code to fetch when building this project

Currently only supports Barista::Behaviors::Omnibus::Fetchers::Net


[View source]

Returns a configured fetcher if one exists.


[View source]
def source_dir #

[View source]
def source_type(val : String | Nil = nil) #

[View source]
def stage_dir #

[View source]
def stage_install_dir #

[View source]
def sync(src, dest, exclude = [] of String, **args, &block : Software::Merger::Strategy) #

[View source]
def sync(src, dest, exclude = [] of String, **args) #

[View source]
def tag #

[View source]
def to_manifest_entry #

[View source]
def update_cache #

[View source]
def use_cache? #

[View source]
def version(val : String | Nil = nil) #

[View source]
def virtual(val : Bool | Nil = nil) #

[View source]