Commit d6fdda2c authored by Jon Pugh's avatar Jon Pugh

debug code.

parent e14cc2fc
......@@ -25,7 +25,11 @@ class Provision_Entity_server extends Provision_Entity {
'aegir_root' => 'server: Aegir root; default ' . getenv('HOME'),
'master_url' => 'server: Hostmaster URL',
);
foreach (drush_command_invoke_all('provision_services') as $service => $default) {
$services = drush_command_invoke_all('provision_services');
print_r($services);
foreach ($services as $service => $default) {
// TODO: replace this file scanning nastiness, with a hook!
$reflect = new reflectionClass('Provision_Service_' . $service);
$base_dir = dirname($reflect->getFilename());
......
......@@ -330,13 +330,17 @@ function drush_provision_save($alias = NULL) {
}
else {
// trigger additional logic that should happen only on save.
drush_log('======================= d($alias)->type_invoke("save"); ', 'ok');
d($alias)->type_invoke('save');
// create or update the record
drush_log('======================= d($alias)->write_alias() ', 'ok');
d($alias)->write_alias();
}
}
function drush_provision_verify() {
drush_log('======================= d()->command_invoke(verify); ', 'ok');
d()->command_invoke('verify');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment