Changeset 12189
- Timestamp:
- 09/12/07 22:07:21 (1 year ago)
- Files:
-
- trunk/midgard/data/midgard_datagard.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midgard/data/midgard_datagard.php
r12143 r12189 46 46 ); 47 47 48 midgard_setup_cli::message(_("Starting Midgard setup")); 48 /* Set verbose level*/ 49 $opts_config['verbose'] = array ( 50 'short' => 'v', 51 'max' => 1, 52 'min' => 1, 53 'desc' => 'Sets verbose level.', 54 'default' => 1 55 ); 49 56 50 57 $args = Console_Getargs::factory($opts_config); 51 58 if (PEAR::isError($args)) 52 59 { 53 midgard_setup_ cli::error($args->getMessage());60 midgard_setup_ui_cli::error($args->getMessage()); 54 61 } 55 62 … … 58 65 $arg_type = $args->getValue('type'); 59 66 if(!in_array($arg_type, $setup_types)) 60 midgard_setup_ cli::error("'{$arg_type}'" . _(" is not supported type of installation"));67 midgard_setup_ui_cli::error("'{$arg_type}'" . _(" is not supported type of installation")); 61 68 62 69 $arg_action = $args->getValue('action'); 63 70 if(!in_array($arg_action, $setup_actions)) 64 midgard_setup_ cli::error("'{$arg_action}'" . _(" is not supported type of actions"));71 midgard_setup_ui_cli::error("'{$arg_action}'" . _(" is not supported type of actions")); 65 72 66 73 $arg_config = $args->getValue('configuration'); 67 74 68 midgard_setup_cli::message("'{$arg_type}'" . _(" type selected")); 75 $arg_verbose = $args->getValue('verbose'); 76 77 if($arg_verbose > 0) 78 midgard_setup_ui_cli::message(_("Starting Midgard setup")); 79 80 if($arg_verbose > 0) 81 midgard_setup_ui_cli::message("'{$arg_type}'" . _(" type selected")); 69 82 70 83 /* Initialize setup */ … … 73 86 case 'wizard': 74 87 75 midgard_setup_ cli::error("Wizard type not yet implemented");88 midgard_setup_ui_cli::error("Wizard type not yet implemented"); 76 89 77 90 break; … … 91 104 } catch (Exception $e) { 92 105 93 midgard_setup_ cli::error($e->getMessage());106 midgard_setup_ui_cli::error($e->getMessage()); 94 107 } 95 108 … … 131 144 132 145 if($arg_config == "") 133 midgard_setup_ cli::error(_("'config-set' requires configuration"));146 midgard_setup_ui_cli::error(_("'config-set' requires configuration")); 134 147 135 148 $mc = new midgard_config(); … … 146 159 default: 147 160 148 midgard_setup_ui_cli _config::monty();161 midgard_setup_ui_cli::monty(); 149 162 150 163 break;
