File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ require 'recipe/deploy/info.php';
1313
1414## Configuration
1515### what
16- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/deploy/info.php#L8 )
16+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/deploy/info.php#L9 )
1717
1818Defines "what" text for the 'deploy: info ' task.
1919Uses one of the following sources:
20201 . Repository name
21+ 2 . Application name
2122:::info Autogenerated
2223The value of this configuration is autogenerated on access.
2324:::
@@ -26,7 +27,7 @@ The value of this configuration is autogenerated on access.
2627
2728
2829### where
29- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/deploy/info.php#L20 )
30+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/deploy/info.php#L25 )
3031
3132Defines "where" text for the 'deploy: info ' task.
3233Uses one of the following sources:
@@ -43,7 +44,7 @@ The value of this configuration is autogenerated on access.
4344## Tasks
4445
4546### deploy\: info {#deploy-info}
46- [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/deploy/info.php#L29 )
47+ [ Source] ( https://github.com/deployphp/deployer/blob/master/recipe/deploy/info.php#L34 )
4748
4849Displays info about deployment.
4950
Original file line number Diff line number Diff line change 55// Defines "what" text for the 'deploy:info' task.
66// Uses one of the following sources:
77// 1. Repository name
8+ // 2. Application name
89set ('what ' , function () {
910 $ repo = get ('repository ' );
1011 if (!empty ($ repo )) {
1112 return preg_replace ('/\.git$/ ' , '' , basename ($ repo ));
1213 }
14+ $ application = get ('application ' );
15+ if (!empty ($ application )) {
16+ return $ application ;
17+ }
1318 return 'something ' ;
1419});
1520
You can’t perform that action at this time.
0 commit comments