PHP Class pakeApp

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

Méthodes publiques

Свойство Type Description
$MAX_LINE_SIZE

Protected Properties

Свойство Type Description
$EXEC_NAME
$OPTIONS
$PAKEFILES
$PLUGINDIRS
$instance

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
__construct ( )
initAndRunTask ( $task_name, $args, $options )
initAndRunTaskInSubprocess ( $command )
parseTaskAndParameters ( array $args )
runDefaultTask ( )

Private Methods

Méthode Description
runInteractiveSession ( )

Method Details

__construct() protected méthode

protected __construct ( )

add_plugin_dir() public méthode

public add_plugin_dir ( $dir )

display_prerequisites() public méthode

Display the tasks and prerequisites

display_tasks_and_comments() public méthode

Display the tasks and dependencies.

do_option() public méthode

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

getPakefilePath() public méthode

public getPakefilePath ( )

get_dryrun() public méthode

public get_dryrun ( )

get_instance() public static méthode

public static get_instance ( ) : pakeApp
Résultat pakeApp

get_plugin_dirs() public méthode

public get_plugin_dirs ( )

get_properties() public méthode

public get_properties ( )

get_trace() public méthode

public get_trace ( )

get_verbose() public méthode

public get_verbose ( )

handle_options() public méthode

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

have_pakefile() public méthode

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

help() public méthode

Display the pake command line help.
public help ( )

initAndRunTask() protected méthode

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

initAndRunTaskInSubprocess() protected méthode

protected initAndRunTaskInSubprocess ( $command )

isTTY() public static méthode

public static isTTY ( )

load_pakefile() public méthode

public load_pakefile ( )

parseTaskAndParameters() protected static méthode

protected static parseTaskAndParameters ( array $args )
$args array

run() public méthode

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

runDefaultTask() protected méthode

protected runDefaultTask ( )

run_help() public static méthode

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 méthode

public static screenWidth ( )

set_properties() public méthode

public set_properties ( $properties )

shouldDoExcerpts() public méthode

public shouldDoExcerpts ( )

showVersion() public méthode

public showVersion ( )

usage() public méthode

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