Skip to content

Commit 089a2f6

Browse files
committed
Refactor run_locally to runLocally for consistent naming convention
1 parent a258a5d commit 089a2f6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Import/MamlRecipe.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static function schema(): SchemaType
6666
]);
6767

6868
$runLocally = S::object([
69-
'run_locally' => S::string(),
69+
'runLocally' => S::string(),
7070
'cwd' => S::optional(S::string()),
7171
'timeout' => S::optional(S::number()),
7272
'idleTimeout' => S::optional(S::number()),
@@ -360,11 +360,11 @@ private function createTask(string $name, ArrayNode $array, string $desc)
360360
$this->wrapException($e, $property->span);
361361
}
362362
},
363-
'run_locally' => function () use ($step, $prev, $property) {
363+
'runLocally' => function () use ($step, $prev, $property) {
364364
$prev();
365365
try {
366366
runLocally(
367-
$step['run_locally'],
367+
$step['runLocally'],
368368
cwd: $step['cwd'] ?? null,
369369
timeout: $step['timeout'] ?? null,
370370
idleTimeout: $step['idleTimeout'] ?? null,

src/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
{
9393
"type": "object",
9494
"properties": {
95-
"run_locally": {
95+
"runLocally": {
9696
"type": "string"
9797
},
9898
"cwd": {
@@ -127,7 +127,7 @@
127127
}
128128
},
129129
"required": [
130-
"run_locally"
130+
"runLocally"
131131
],
132132
"additionalProperties": false
133133
},

tests/src/Import/MamlRecipeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ public function testTaskWithRunLocally(): void
471471
tasks: {
472472
my_local_task: [
473473
{
474-
run_locally: "echo local"
474+
runLocally: "echo local"
475475
timeout: 120
476476
nothrow: true
477477
}
@@ -488,7 +488,7 @@ public function testTaskWithRunLocallyOptions(): void
488488
tasks: {
489489
local_cwd: [
490490
{
491-
run_locally: "ls"
491+
runLocally: "ls"
492492
cwd: "/tmp"
493493
shell: "/bin/bash"
494494
forceOutput: true

0 commit comments

Comments
 (0)