PHP Class REBELinBLUE\Deployer\Http\Controllers\Resources\CommandController

Inheritance: extends ResourceController
Show file Open project: rebelinblue/deployer

Public Methods

Method Description
__construct ( REBELinBLUE\Deployer\Contracts\Repositories\CommandRepositoryInterface $commandRepository, REBELinBLUE\Deployer\Contracts\Repositories\ProjectRepositoryInterface $projectRepository ) CommandController constructor.
listing ( integer $target_id, integer $action ) : Illuminate\View\View Display a listing of before/after commands for the supplied stage.
reorder ( Illuminate\Http\Request $request ) : array Re-generates the order for the supplied commands.
store ( StoreCommandRequest $request ) : Model Store a newly created command in storage.
update ( integer $command_id, StoreCommandRequest $request ) : Model Update the specified command in storage.

Method Details

__construct() public method

CommandController constructor.
public __construct ( REBELinBLUE\Deployer\Contracts\Repositories\CommandRepositoryInterface $commandRepository, REBELinBLUE\Deployer\Contracts\Repositories\ProjectRepositoryInterface $projectRepository )
$commandRepository REBELinBLUE\Deployer\Contracts\Repositories\CommandRepositoryInterface
$projectRepository REBELinBLUE\Deployer\Contracts\Repositories\ProjectRepositoryInterface

listing() public method

Display a listing of before/after commands for the supplied stage.
public listing ( integer $target_id, integer $action ) : Illuminate\View\View
$target_id integer
$action integer
return Illuminate\View\View

reorder() public method

Re-generates the order for the supplied commands.
public reorder ( Illuminate\Http\Request $request ) : array
$request Illuminate\Http\Request
return array

store() public method

Store a newly created command in storage.
public store ( StoreCommandRequest $request ) : Model
$request REBELinBLUE\Deployer\Http\Requests\StoreCommandRequest
return Illuminate\Database\Eloquent\Model

update() public method

Update the specified command in storage.
public update ( integer $command_id, StoreCommandRequest $request ) : Model
$command_id integer
$request REBELinBLUE\Deployer\Http\Requests\StoreCommandRequest
return Illuminate\Database\Eloquent\Model