|
@ -12,69 +12,76 @@ |
|
|
class Stack_Command extends EE_CLI_Command { |
|
|
class Stack_Command extends EE_CLI_Command { |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Remove a value from the object cache. |
|
|
* Install package into system. |
|
|
* |
|
|
|
|
|
* |
|
|
|
|
|
* |
|
|
|
|
|
*[--package=<package>] |
|
|
*[--package=<package>] |
|
|
* |
|
|
* : Install packages |
|
|
* |
|
|
|
|
|
* |
|
|
* |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
public function install( $args, $assoc_args ) { |
|
|
public function install( $args, $assoc_args ) { |
|
|
|
|
|
|
|
|
if (isset($assoc_args['package'])){ |
|
|
|
|
|
|
|
|
|
|
|
EE_CLI::success( 'Package succesfully installed : ' . $assoc_args['package'] ); |
|
|
EE_CLI::success( 'Package succesfully installed : ' . $assoc_args['package'] ); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
} |
|
|
* Install package into system. |
|
|
|
|
|
*[--package=<package>] |
|
|
|
|
|
* : Install packages |
|
|
|
|
|
* |
|
|
|
|
|
*/ |
|
|
public function remove( $args, $assoc_args ) { |
|
|
public function remove( $args, $assoc_args ) { |
|
|
|
|
|
|
|
|
//removing packages |
|
|
//removing packages |
|
|
|
|
|
EE_CLI::success( 'Package succesfully removed : ' . $assoc_args['package'] ); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Install package into system. |
|
|
|
|
|
*[--package=<package>] |
|
|
|
|
|
* : Install packages |
|
|
|
|
|
* |
|
|
|
|
|
*/ |
|
|
public function purge( $args, $assoc_args ) { |
|
|
public function purge( $args, $assoc_args ) { |
|
|
//purging packages |
|
|
//purging packages |
|
|
|
|
|
EE_CLI::success( 'Package succesfully purged : ' . $assoc_args['package'] ); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Install package into system. |
|
|
|
|
|
*[--package=<package>] |
|
|
|
|
|
* : Install packages |
|
|
|
|
|
* |
|
|
|
|
|
*/ |
|
|
public function start( $args, $assoc_args ) { |
|
|
public function start( $args, $assoc_args ) { |
|
|
|
|
|
|
|
|
//start service |
|
|
//start service |
|
|
|
|
|
EE_CLI::success( 'Service succesfully started : ' . $assoc_args['package'] ); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Install package into system. |
|
|
|
|
|
*[--package=<package>] |
|
|
|
|
|
* : Install packages |
|
|
|
|
|
* |
|
|
|
|
|
*/ |
|
|
public function stop( $args, $assoc_args ) { |
|
|
public function stop( $args, $assoc_args ) { |
|
|
|
|
|
|
|
|
//stop service |
|
|
//stop service |
|
|
|
|
|
EE_CLI::success( 'Service succesfully stopped : ' . $assoc_args['package'] ); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Install package into system. |
|
|
|
|
|
*[--package=<package>] |
|
|
|
|
|
* : Install packages |
|
|
|
|
|
* |
|
|
|
|
|
*/ |
|
|
public function upgrade( $args, $assoc_args ) { |
|
|
public function upgrade( $args, $assoc_args ) { |
|
|
|
|
|
|
|
|
//removing packages |
|
|
//upgraded packages |
|
|
|
|
|
EE_CLI::success( 'Package succesfully upgraded : ' . $assoc_args['package'] ); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
EE_CLI::add_command( 'stack', 'Stack_Command' ); |
|
|
EE_CLI::add_command( 'stack', 'Stack_Command' ); |
|
|