Added a one click deploy command

This commit is contained in:
Graham Campbell
2015-01-01 17:47:53 +00:00
parent fcf68b3aea
commit 981b5a055d
7 changed files with 131 additions and 13 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace CachetHQ\Cachet\Providers;
use CachetHQ\Cachet\Commands\OneClickDeployCommand;
use Illuminate\Support\ServiceProvider;
class ConsoleServiceProvider extends ServiceProvider
{
/**
* Boot the service provider.
*
* @return void
*/
public function boot()
{
$this->commands('CachetHQ\Cachet\Commands\OneClickDeployCommand');
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app->singleton('CachetHQ\Cachet\Commands\OneClickDeployCommand', function ($app) {
return new OneClickDeployCommand($app->environment('heroku'));
});
}
}