abstract class Barista::Behaviors::Brew::Action
- Barista::Behaviors::Brew::Action
- Reference
- Object
Included Modules
- Barista::Behaviors::Brew::ActionCommands
- Barista::Behaviors::Macros
- Barista::Behaviors::Software::FileMacros
Direct Known Subclasses
- Barista::Behaviors::Brew::KillAction
- Barista::Behaviors::Brew::StatusAction
- Barista::Behaviors::Brew::StopAction
Defined in:
barista/behaviors/brew/action.crConstructors
Class Method Summary
- .name
- .wait(val : Bool | Nil = nil)
- .wait_duration(val : Int32 | Nil = nil)
- .wait_interval(val : Float64 | Nil = nil)
Macro Summary
Instance Method Summary
- #action(other : Action.class)
- #action(actable : Action)
- #action(*args, **options)
- #action(*args, **options, &)
- #as_user(username : String, &)
- #command
- #execute
- #find_user(name : String) : System::User
- #http_ok?(url) : Bool
- #kill(group = true)
- #name : String
- #output : String | Nil
- #process_exists?(*args, **options)
- #process_exists?(*args, **options, &)
- #project(*args, **options)
- #project(*args, **options, &)
- #quit(group = true)
- #ready? : Bool
- #skip? : Bool
- #stop(group = true)
- #supervise(command, args = [] of String, *, env : Hash(String, String) | Nil = nil, as_user : String | Nil = nil) : SupervisorCommand
- #task : Barista::Behaviors::Brew::Task
- #terminate(group = true)
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_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::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
Class Method Detail
Macro Detail
Instance Method Detail
def supervise(command, args = [] of String, *, env : Hash(String, String) | Nil = nil, as_user : String | Nil = nil) : SupervisorCommand
#