You are here

function drush_apps_server_list in Apps 7

Get a list of all app servers configured.

File

./apps.drush.inc, line 58
Apps module drush integration.

Code

function drush_apps_server_list() {
  module_load_include('inc', 'apps', 'apps.manifest');
  $servers = apps_servers();
  $rows = array(
    array(
      dt('Key'),
      dt('Name'),
      dt('desc'),
      dt('URL'),
    ),
  );
  foreach ($servers as $k => $server) {
    $rows[] = array(
      $k,
      $server['title'],
      $server['description'],
      $server['manifest'],
    );
  }
  drush_print_table($rows, TRUE);
}