abstract class Barista::Behaviors::Brew::Action

Included Modules

Direct Known Subclasses

Defined in:

barista/behaviors/brew/action.cr

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

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::Brew::ActionCommands

block(name = nil, &block : -> ) block, command(str : String, **args) command, copy(src, dest, **args) copy, emit(str : String) emit, emit_error(str : String) emit_error, link(src, dest, **args) link, mkdir(dir, **args) mkdir, patch(path : String, **args) patch, shellout(command : String, env : Hash(String, String) | Nil = nil, chdir : String | Nil = nil, as_user : String | Nil = nil)
shellout(command : String, args : Array(String), env : Hash(String, String) | Nil = nil, chdir : String | Nil = nil, as_user : String | Nil = nil)
shellout
, success?(cmd, args, **opts)
success?(cmd, **opts)
success?
, sync(src, dest, **args, &block : Merger::Strategy)
sync(src, dest, **args)
sync
, template(**args) template

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::Macros

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

Constructor Detail

def self.new(task : Barista::Behaviors::Brew::Task) #

[View source]

Class Method Detail

def self.name #

[View source]
def self.wait(val : Bool | Nil = nil) #

[View source]
def self.wait_duration(val : Int32 | Nil = nil) #

[View source]
def self.wait_interval(val : Float64 | Nil = nil) #

[View source]

Macro Detail

macro nametag(name) #

[View source]
macro signal(method, signal) #

[View source]

Instance Method Detail

def action(other : Action.class) #

[View source]
def action(actable : Action) #

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

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

[View source]
def as_user(username : String, &) #

[View source]
def command #

[View source]
abstract def execute #

[View source]
def find_user(name : String) : System::User #

[View source]
def http_ok?(url) : Bool #

[View source]
def kill(group = true) #

[View source]
def name : String #

[View source]
def output : String | Nil #

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

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

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

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

[View source]
def quit(group = true) #

[View source]
abstract def ready? : Bool #

[View source]
abstract def skip? : Bool #

[View source]
def stop(group = true) #

[View source]
def supervise(command, args = [] of String, *, env : Hash(String, String) | Nil = nil, as_user : String | Nil = nil) : SupervisorCommand #

[View source]

[View source]
def terminate(group = true) #

[View source]