File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,6 +45,9 @@ $lookUp = function (string $name): ?string {
4545if (empty ($ deployFile )) {
4646 $ deployFile = $ lookUp ('deploy.php ' );
4747}
48+ if (empty ($ deployFile )) {
49+ $ deployFile = $ lookUp ('deploy.maml ' );
50+ }
4851if (empty ($ deployFile )) {
4952 $ deployFile = $ lookUp ('deploy.yaml ' );
5053}
Original file line number Diff line number Diff line change 1010
1111namespace Deployer \Import ;
1212
13- use Deployer \Exception \ConfigurationException ;
1413use Deployer \Exception \Exception ;
1514use Deployer \Exception \SchemaException ;
1615use Maml \Ast \ArrayNode ;
@@ -48,7 +47,7 @@ public function __construct(string $path)
4847 $ this ->content = file_get_contents ($ path , true );
4948 }
5049
51- private function schema (): SchemaType
50+ public static function schema (): SchemaType
5251 {
5352 $ cd = S::object ([
5453 'cd ' => S::string (),
@@ -158,7 +157,7 @@ public function run(): void
158157 {
159158 $ recipe = Maml::parseAst ($ this ->content );
160159
161- $ validationErrors = Maml::validate ($ recipe , $ this -> schema ());
160+ $ validationErrors = Maml::validate ($ recipe , self :: schema ());
162161
163162 $ exception = null ;
164163 foreach ($ validationErrors as $ error ) {
You can’t perform that action at this time.
0 commit comments