module Barista::Behaviors::Omnibus::Task
Included Modules
- Barista::Behaviors::Omnibus::Macros
- Barista::Behaviors::Omnibus::PlatformEnv
- Barista::Behaviors::Software::Task
Defined in:
barista/behaviors/omnibus/task.crConstructors
Instance Method Summary
- #barista_dir(*args, **options)
- #barista_dir(*args, **options, &)
- #bin(exe, command, **args)
- #cache(val : Bool | Nil = nil)
- #callbacks
- #command(str : String, chdir : String = source_dir, **args)
- #configure : Nil
- #copy(src, dest, chdir : String = source_dir, **args)
- #execute
- #fetching_dir
- #install_dir(*args, **options)
- #install_dir(*args, **options, &)
- #license(val : String | Nil = nil)
- #license_collector(*args, **options)
- #license_collector(*args, **options, &)
- #license_file(val : String)
- #license_files
- #link(src, dest, chdir : String = source_dir, **args)
-
#local_source(location : String, **opts)
Uses a local source
- #mkdir(dir, **args)
- #patch(path : String, chdir : String = source_dir, **args)
- #preserve_symlinks(val : Bool | Nil = nil)
- #project
- #relative_path(val : String | Nil = nil)
- #restore
- #shasum : String
- #smart_install_dir
-
#source(location : String, **opts)
Define the source code to fetch when building this project
-
#source : Software::Fetchers::Net | Software::Fetchers::Local | Nil
Returns a configured fetcher if one exists.
- #source_dir
- #source_type(val : String | Nil = nil)
- #stage_dir
- #stage_install_dir
- #sync(src, dest, exclude = [] of String, **args, &block : Software::Merger::Strategy)
- #sync(src, dest, exclude = [] of String, **args)
- #tag
- #to_manifest_entry
- #update_cache
- #use_cache?
- #version(val : String | Nil = nil)
- #virtual(val : Bool | Nil = nil)
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_erroron_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)
#
Instance Method Detail
def source(location : String, **opts)
#
Define the source code to fetch when building this project
Currently only supports Barista::Behaviors::Omnibus::Fetchers::Net
Returns a configured fetcher if one exists.