Skip to content
Snippets Groups Projects
Commit 10c955fb authored by Marius David Wieschollek's avatar Marius David Wieschollek
Browse files

Fix output error

parent ef7841dd
Branches VAGRANT-0.4
No related tags found
No related merge requests found
......@@ -21,12 +21,13 @@ class HaltHook {
* @throws \Exception
*/
public function run(AbstractJob $upJob) {
$upJob->getOutput()->print('vagrant.jobs.halt');
global $output;
$output->print('vagrant.jobs.halt');
ShellUtility::makeShell('local')->addCommand(
ClassUtility::makeInstance(Command::class, 'vagrant', 'halt')
)->execute();
$upJob->getOutput()->print('jobs.done');
$output->success('jobs.done');
}
}
\ No newline at end of file
......@@ -21,12 +21,13 @@ class UpHook {
* @throws \Exception
*/
public function run(AbstractJob $upJob) {
$upJob->getOutput()->print('vagrant.jobs.up');
global $output;
$output->print('vagrant.jobs.up');
ShellUtility::makeShell('local')->addCommand(
ClassUtility::makeInstance(Command::class, 'vagrant', 'up')
)->execute();
$upJob->getOutput()->print('jobs.done');
$output->print('jobs.done');
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment