File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed
Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -112,12 +112,12 @@ Usage:
112112``` php
113113$configuration->addAfterDeployTask(new \Hypernode\DeployConfiguration\AfterDeployTask\SlackWebhook());
114114```
115- ### 5. Ephemeral servers for acceptance/integration testing
115+ ### 5. Brancher servers for acceptance/integration testing
116116
117117Usage:
118118``` php
119119$stage = $configuration->addStage('test', 'test.domain.com');
120- $stage->addEphemeralServer ('appname');
120+ $stage->addBrancherServer ('appname');
121121```
122122
123123## Application template
Original file line number Diff line number Diff line change 77 */
88class Server
99{
10- public const OPTION_HN_EPHEMERAL = 'hn_ephemeral ' ;
10+ public const OPTION_HN_BRANCHER = 'hn_brancher ' ;
1111 public const OPTION_HN_PARENT_APP = 'hn_parent_app ' ;
1212
1313 /**
Original file line number Diff line number Diff line change @@ -68,22 +68,22 @@ public function addServer(
6868 }
6969
7070 /**
71- * Create a temporary (ephemeral ) Hypernode instance based on given Hypernode.
71+ * Create a temporary (brancher ) Hypernode instance based on given Hypernode.
7272 * The hostname will be defined during the deployment.
7373 *
74- * @param string $appName Name of the Hypernode to base the ephemeral server on
74+ * @param string $appName Name of the Hypernode to base the brancher server on
7575 * @param array|null $roles Roles for the server to be applied
7676 * @param array $options Extra host options for Deployer
7777 * @see ServerRole
7878 * @return Server
7979 */
80- public function addEphemeralServer (string $ appName , array $ roles = null , array $ options = []): Server
80+ public function addBrancherServer (string $ appName , array $ roles = null , array $ options = []): Server
8181 {
82- $ ephemeralOptions = [
83- Server::OPTION_HN_EPHEMERAL => true ,
82+ $ brancherOptions = [
83+ Server::OPTION_HN_BRANCHER => true ,
8484 Server::OPTION_HN_PARENT_APP => $ appName ,
8585 ];
86- $ options = array_merge ($ ephemeralOptions , $ options );
86+ $ options = array_merge ($ brancherOptions , $ options );
8787 $ server = new Server ('' , $ roles , $ options );
8888 $ this ->servers [] = $ server ;
8989 return $ server ;
Original file line number Diff line number Diff line change 1414$ productionStage ->addServer ('appname.hypernode.io ' );
1515
1616$ testStage = $ configuration ->addStage ('test ' , 'example.com ' );
17- $ testStage ->addEphemeralServer ('appname ' );
17+ $ testStage ->addBrancherServer ('appname ' );
1818
1919return $ configuration ;
Original file line number Diff line number Diff line change 1414$ productionStage ->addServer ('appname.hypernode.io ' );
1515
1616$ testStage = $ configuration ->addStage ('test ' , 'example.com ' );
17- $ testStage ->addEphemeralServer ('appname ' );
17+ $ testStage ->addBrancherServer ('appname ' );
1818
1919return $ configuration ;
You can’t perform that action at this time.
0 commit comments