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

Inheritance: extends ResourceController
Exibir arquivo Open project: rebelinblue/deployer

Public Methods

Method Description
__construct ( REBELinBLUE\Deployer\Contracts\Repositories\ServerRepositoryInterface $repository ) ServerController constructor.
reorder ( Illuminate\Http\Request $request ) : array Re-generates the order for the supplied servers.
store ( StoreServerRequest $request ) : Model Store a newly created server in storage.
test ( integer $server_id ) : array Queues a connection test for the specified server.
update ( integer $server_id, StoreServerRequest $request ) : Model Update the specified server in storage.

Method Details

__construct() public method

ServerController constructor.
public __construct ( REBELinBLUE\Deployer\Contracts\Repositories\ServerRepositoryInterface $repository )
$repository REBELinBLUE\Deployer\Contracts\Repositories\ServerRepositoryInterface

reorder() public method

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

store() public method

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

test() public method

Queues a connection test for the specified server.
public test ( integer $server_id ) : array
$server_id integer
return array

update() public method

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