-
Notifications
You must be signed in to change notification settings - Fork 12
/
homestead
43 lines (37 loc) · 1.12 KB
/
homestead
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env php
<?php
$_ENV['HOME'] = getenv('HOME');
$_ENV['VAGRANT_DOTFILE_PATH'] = homestead_path().DIRECTORY_SEPARATOR.'.vagrant';
if (file_exists(__DIR__.'/vendor/autoload.php'))
{
require __DIR__.'/vendor/autoload.php';
}
else
{
require __DIR__.'/../../autoload.php';
}
function homestead_path()
{
if (isset($_SERVER['HOME']))
{
return $_SERVER['HOME'].'/.homestead';
}
else
{
return $_SERVER['HOMEDRIVE'].$_SERVER['HOMEPATH'].DIRECTORY_SEPARATOR.'.homestead';
}
}
$app = new Symfony\Component\Console\Application('Laravel Homestead', '2.0.11');
$app->add(new Laravel\Homestead\DestroyCommand);
$app->add(new Laravel\Homestead\EditCommand);
$app->add(new Laravel\Homestead\HaltCommand);
$app->add(new Laravel\Homestead\InitCommand);
$app->add(new Laravel\Homestead\ProvisionCommand);
$app->add(new Laravel\Homestead\ResumeCommand);
$app->add(new Laravel\Homestead\RunCommand);
$app->add(new Laravel\Homestead\UpCommand);
$app->add(new Laravel\Homestead\UpdateCommand);
$app->add(new Laravel\Homestead\SshCommand);
$app->add(new Laravel\Homestead\StatusCommand);
$app->add(new Laravel\Homestead\SuspendCommand);
$app->run();