Browse Source

added commands

feature/refactor-php
Prabuddha Chakraborty 9 years ago
parent
commit
ab8bbca73d
  1. 2
      VERSION
  2. 24
      php/commands/site.php
  3. 80
      php/commands/stack.php

2
VERSION

@ -1 +1 @@
0.1-alpha 4.0.0-alpha

24
php/commands/site.php

@ -11,6 +11,30 @@
*/ */
class Site_Command extends EE_CLI_Command { class Site_Command extends EE_CLI_Command {
/**
* Remove a value from the object cache.
*
* <sitename>
* : Cache key.
*[--cache=<cache>]
* : Webroot
* [--user]
* [--pass]
* [--email]
* : Method for grouping data within the cache which allows the same key to be used across groups.
*/
public function create( $args, $assoc_args ) {
if (isset($assoc_args['cache'])){
EE_CLI::success( 'Site Successfully created with ' . $assoc_args['cache'] . ' cache.' );
}
}
/** /**
* Remove a value from the object cache. * Remove a value from the object cache.
* *

80
php/commands/stack.php

@ -0,0 +1,80 @@
<?php
/**
* Manage EasyEngine sites.
*
* ## EXAMPLES
*
* ee site create my_domain
*
* ee site delete my_domain
*/
class Stack_Command extends EE_CLI_Command {
/**
* Remove a value from the object cache.
*
*
*
*[--package=<package>]
*
*
* : Method for grouping data within the cache which allows the same key to be used across groups.
*/
public function install( $args, $assoc_args ) {
if (isset($assoc_args['package'])){
EE_CLI::success( 'Site Successfully created with ' . $assoc_args['package'] . ' cache.' );
}
}
public function remove( $args, $assoc_args ) {
//removing packages
}
public function purge( $args, $assoc_args ) {
}
public function start( $args, $assoc_args ) {
//removing packages
}
public function stop( $args, $assoc_args ) {
//removing packages
}
public function upgrade( $args, $assoc_args ) {
//removing packages
}
}
EE_CLI::add_command( 'stack', 'Stack_Command' );
Loading…
Cancel
Save