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

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

Public Methods

Method Description
__construct ( REBELinBLUE\Deployer\Contracts\Repositories\HeartbeatRepositoryInterface $repository ) HeartbeatController constructor.
ping ( string $hash ) : Illuminate\View\View Handles the callback URL for the heartbeat.
store ( StoreHeartbeatRequest $request ) : Illuminate\View\View Store a newly created heartbeat in storage.
update ( integer $heartbeat_id, StoreHeartbeatRequest $request ) : Illuminate\View\View Update the specified heartbeat in storage.

Method Details

__construct() public method

HeartbeatController constructor.
public __construct ( REBELinBLUE\Deployer\Contracts\Repositories\HeartbeatRepositoryInterface $repository )
$repository REBELinBLUE\Deployer\Contracts\Repositories\HeartbeatRepositoryInterface

ping() public method

Handles the callback URL for the heartbeat.
public ping ( string $hash ) : Illuminate\View\View
$hash string
return Illuminate\View\View

store() public method

Store a newly created heartbeat in storage.
public store ( StoreHeartbeatRequest $request ) : Illuminate\View\View
$request REBELinBLUE\Deployer\Http\Requests\StoreHeartbeatRequest
return Illuminate\View\View

update() public method

Update the specified heartbeat in storage.
public update ( integer $heartbeat_id, StoreHeartbeatRequest $request ) : Illuminate\View\View
$heartbeat_id integer
$request REBELinBLUE\Deployer\Http\Requests\StoreHeartbeatRequest
return Illuminate\View\View