Пример #1
0
 protected function _setup()
 {
     $this->_command_name = 'remove_scope';
     $this->_description = "Removes a scope";
     $this->addRequiredArgument('hostname', 'The hostname for the scope to remove');
     parent::_setup();
 }
Пример #2
0
 protected function _setup()
 {
     $this->_command_name = 'create_scope';
     $this->_description = "Create a new scope";
     $this->addRequiredArgument('hostname', 'The default hostname for this scope');
     $this->addRequiredArgument('shortname', 'The short name for this scope');
     $this->addOptionalArgument('description', 'An optional description for this scope');
     $this->addOptionalArgument('enable_uploads', 'Whether uploads are enabled for this scope (yes/no)');
     $this->addOptionalArgument('upload_limit', 'The upload limit for this scope');
     $this->addOptionalArgument('projects', 'The number of available projects for this scope');
     $this->addOptionalArgument('users', 'The number of available users for this scope');
     $this->addOptionalArgument('teams', 'The number of available teams for this scope');
     $this->addOptionalArgument('workflows', 'The number of available workflows for this scope');
     foreach (framework\Context::getModules() as $module) {
         $module_name = $module->getName();
         if ($module_name == 'publish') {
             continue;
         }
         $this->addOptionalArgument("install_module_{$module_name}", "Install the {$module_name} module in this scope (yes/no)");
     }
     $this->addOptionalArgument('scope_admin', 'Add an admin user (username) to this scope');
     $this->addOptionalArgument('remove_admin', 'Remove admininistrator from this scope (yes/no)');
     parent::_setup();
 }
Пример #3
0
 protected function _setup()
 {
     $this->_command_name = 'list_scopes';
     $this->_description = "List available scopes";
     parent::_setup();
 }