This repository has been archived by the owner on Feb 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
539 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
namespace App\Commands; | ||
|
||
use App\Commands\Traits\HasDynamicArgs; | ||
use App\Process; | ||
use LaravelZero\Framework\Commands\Command; | ||
|
||
class Buddy extends Command | ||
{ | ||
use HasDynamicArgs; | ||
|
||
/** | ||
* The name of the command. | ||
* | ||
* @var string | ||
*/ | ||
protected $name = 'buddy'; | ||
|
||
/** | ||
* The description of the command. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'Run buddy in the NODE-QA container.'; | ||
|
||
/** | ||
* Execute the console command. | ||
* | ||
* @return mixed | ||
*/ | ||
public function handle(Process $process) | ||
{ | ||
$process->dockerRun(env('FWD_IMAGE_NODE_QA'), 'buddy', $this->getArgs()); | ||
} | ||
|
||
/** | ||
* Get default args when empty. | ||
* | ||
* @return string | ||
*/ | ||
public function getDefaultArgs(): string | ||
{ | ||
return 'src/'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
namespace App\Commands; | ||
|
||
use App\Commands\Traits\HasDynamicArgs; | ||
use App\Process; | ||
use LaravelZero\Framework\Commands\Command; | ||
|
||
class JsInspect extends Command | ||
{ | ||
use HasDynamicArgs; | ||
|
||
/** | ||
* The name of the command. | ||
* | ||
* @var string | ||
*/ | ||
protected $name = 'jsinspect'; | ||
|
||
/** | ||
* The description of the command. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'Run jsinspect in the NODE-QA container.'; | ||
|
||
/** | ||
* Execute the console command. | ||
* | ||
* @return mixed | ||
*/ | ||
public function handle(Process $process) | ||
{ | ||
$process->dockerRun(env('FWD_IMAGE_NODE_QA'), 'jsinspect', $this->getArgs()); | ||
} | ||
|
||
/** | ||
* Get default args when empty. | ||
* | ||
* @return string | ||
*/ | ||
public function getDefaultArgs(): string | ||
{ | ||
return 'src/'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
namespace App\Commands; | ||
|
||
use App\Commands\Traits\HasDynamicArgs; | ||
use App\Process; | ||
use LaravelZero\Framework\Commands\Command; | ||
|
||
class NodeQa extends Command | ||
{ | ||
use HasDynamicArgs; | ||
|
||
/** | ||
* The name of the command. | ||
* | ||
* @var string | ||
*/ | ||
protected $name = 'node-qa'; | ||
|
||
/** | ||
* The description of the command. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'Run shell commands in the NODE-QA container.'; | ||
|
||
/** | ||
* Execute the console command. | ||
* | ||
* @return mixed | ||
*/ | ||
public function handle(Process $process) | ||
{ | ||
$process->dockerRun(env('FWD_IMAGE_NODE_QA'), $this->getArgs()); | ||
} | ||
|
||
/** | ||
* Get default args when empty. | ||
* | ||
* @return string | ||
*/ | ||
public function getDefaultArgs(): string | ||
{ | ||
return 'node -v'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
namespace App\Commands; | ||
|
||
use App\Commands\Traits\HasDynamicArgs; | ||
use App\Process; | ||
use LaravelZero\Framework\Commands\Command; | ||
|
||
class Phan extends Command | ||
{ | ||
use HasDynamicArgs; | ||
|
||
/** | ||
* The name of the command. | ||
* | ||
* @var string | ||
*/ | ||
protected $name = 'phan'; | ||
|
||
/** | ||
* The description of the command. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'Run phan in the PHP-QA container.'; | ||
|
||
/** | ||
* Execute the console command. | ||
* | ||
* @return mixed | ||
*/ | ||
public function handle(Process $process) | ||
{ | ||
$process->dockerRun(env('FWD_IMAGE_PHP_QA'), 'phan', $this->getArgs()); | ||
} | ||
|
||
/** | ||
* Get default args when empty. | ||
* | ||
* @return string | ||
*/ | ||
public function getDefaultArgs(): string | ||
{ | ||
return '--color -p -l app -iy 5'; | ||
} | ||
} |
Oops, something went wrong.