NAME

Metabrik::Core::Context - core::context Brik

SYNOPSIS

# From a Perl program
use Metabrik::Core::Context;   

my $con = Metabrik::Core::Context->new or die("core::context");

# Or from a shell, to call a Command with a one-liner
perl -MMetabrik::Core::Context -e 'Metabrik::Core::Context->new_brik_run( \
   "brik::tool", "install", "lookup::iplocation")'

DESCRIPTION

This Brik keeps track of everything that happens within Metabrik. That includes persistence of Perl variables and loaded Briks along with their set Attributes for instance.

This is the only Brik that is mandatory to use when writing a Tool, and it will auto-load core::log, core::global and core::shell for you. When these Briks are loaded from core::context, some global variables are set as pointers to them: $CON, $GLO, $LOG, and $SHE to point to respectively core::context, core::global, core::log and core::shell Briks.

ATTRIBUTES

At The Metabrik Shell, just type:

"get core::context"

COMMANDS

At The Metabrik Shell, just type:

"help core::context"

METHODS

brik_properties
new
new_brik_run
brik_init
available
call
do
find_available
get
get_used
is_available
is_not_used
is_used
log
not_used
restore_state
reuse
run
save_state
set
status
update_available
use
used
variables
brik_fini

SEE ALSO

Metabrik

COPYRIGHT AND LICENSE

Copyright (c) 2014-2020, Patrice <GomoR> Auffret

You may distribute this module under the terms of The BSD 3-Clause License. See LICENSE file in the source distribution archive.

AUTHOR

Patrice <GomoR> Auffret