PHP Class pakeApp

This class is a singleton.
Author: Fabien Potencier ([email protected])
Exibir arquivo Open project: indeyets/pake Class Usage Examples

Public Properties

Property Type Description
$MAX_LINE_SIZE

Protected Properties

Property Type Description
$EXEC_NAME
$OPTIONS
$PAKEFILES
$PLUGINDIRS
$instance

Public Methods

Method Description
add_plugin_dir ( $dir )
display_prerequisites ( ) Display the tasks and prerequisites
display_tasks_and_comments ( ) Display the tasks and dependencies.
do_option ( $opt, $value ) Do the option defined by +opt+ and +value+.
getPakefilePath ( )
get_dryrun ( )
get_instance ( ) : pakeApp
get_plugin_dirs ( )
get_properties ( )
get_trace ( )
get_verbose ( )
handle_options ( $options = null ) Read and handle the command line options.
have_pakefile ( ) If a match is found, it is copied into @pakefile.
help ( ) Display the pake command line help.
isTTY ( )
load_pakefile ( )
run ( $pakefile = null, $options = null, $load_pakefile = true )
run_help ( string $task, string $args ) show documentation; use "pake help taskname" to see detailed documentation on task
screenWidth ( )
set_properties ( $properties )
shouldDoExcerpts ( )
showVersion ( )
usage ( $hint_about_help = true ) Display the program usage line.

Protected Methods

Method Description
__construct ( )
initAndRunTask ( $task_name, $args, $options )
initAndRunTaskInSubprocess ( $command )
parseTaskAndParameters ( array $args )
runDefaultTask ( )

Private Methods

Method Description
runInteractiveSession ( )

Method Details

__construct() protected method

protected __construct ( )

add_plugin_dir() public method

public add_plugin_dir ( $dir )

display_prerequisites() public method

Display the tasks and prerequisites

display_tasks_and_comments() public method

Display the tasks and dependencies.

do_option() public method

Do the option defined by +opt+ and +value+.
public do_option ( $opt, $value )

getPakefilePath() public method

public getPakefilePath ( )

get_dryrun() public method

public get_dryrun ( )

get_instance() public static method

public static get_instance ( ) : pakeApp
return pakeApp

get_plugin_dirs() public method

public get_plugin_dirs ( )

get_properties() public method

public get_properties ( )

get_trace() public method

public get_trace ( )

get_verbose() public method

public get_verbose ( )

handle_options() public method

Read and handle the command line options.
public handle_options ( $options = null )

have_pakefile() public method

If a match is found, it is copied into @pakefile.
public have_pakefile ( )

help() public method

Display the pake command line help.
public help ( )

initAndRunTask() protected method

protected initAndRunTask ( $task_name, $args, $options )

initAndRunTaskInSubprocess() protected method

protected initAndRunTaskInSubprocess ( $command )

isTTY() public static method

public static isTTY ( )

load_pakefile() public method

public load_pakefile ( )

parseTaskAndParameters() protected static method

protected static parseTaskAndParameters ( array $args )
$args array

run() public method

public run ( $pakefile = null, $options = null, $load_pakefile = true )

runDefaultTask() protected method

protected runDefaultTask ( )

run_help() public static method

show documentation; use "pake help taskname" to see detailed documentation on task
Author: Alexey Zakhlestin
public static run_help ( string $task, string $args )
$task string
$args string

screenWidth() public static method

public static screenWidth ( )

set_properties() public method

public set_properties ( $properties )

shouldDoExcerpts() public method

public shouldDoExcerpts ( )

showVersion() public method

public showVersion ( )

usage() public method

Display the program usage line.
public usage ( $hint_about_help = true )

Property Details

$EXEC_NAME protected_oe static_oe property

protected static $EXEC_NAME

$MAX_LINE_SIZE public_oe static_oe property

public static $MAX_LINE_SIZE

$OPTIONS protected_oe static_oe property

protected static $OPTIONS

$PAKEFILES protected_oe property

protected $PAKEFILES

$PLUGINDIRS protected_oe property

protected $PLUGINDIRS

$instance protected_oe static_oe property

protected static $instance