--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/authserver/homestead/src/SuspendCommand.php Wed May 27 15:34:06 2015 +0200
@@ -0,0 +1,38 @@
+<?php namespace Laravel\Homestead;
+
+use Symfony\Component\Process\Process;
+use Symfony\Component\Console\Command\Command;
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
+
+class SuspendCommand extends Command {
+
+ /**
+ * Configure the command options.
+ *
+ * @return void
+ */
+ protected function configure()
+ {
+ $this->setName('suspend')
+ ->setDescription('Suspend the Homestead machine');
+ }
+
+ /**
+ * Execute the command.
+ *
+ * @param \Symfony\Component\Console\Input\InputInterface $input
+ * @param \Symfony\Component\Console\Output\OutputInterface $output
+ * @return void
+ */
+ public function execute(InputInterface $input, OutputInterface $output)
+ {
+ $process = new Process('vagrant suspend', realpath(__DIR__.'/../'), array_merge($_SERVER, $_ENV), null, null);
+
+ $process->run(function($type, $line) use ($output)
+ {
+ $output->write($line);
+ });
+ }
+
+}