Skip to content

Commit a242bb3

Browse files
Merge pull request #33 from nuernbergerA/runtime-helper
Add runtime helper
2 parents 0457e91 + 1360459 commit a242bb3

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

src/LambdaFunction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function toPendingResult(PromiseInterface $raw)
201201
*/
202202
public function runtime()
203203
{
204-
return 'nodejs14.x';
204+
return Runtime::NODEJS_14;
205205
}
206206

207207
/**

src/Runtime.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
namespace Hammerstone\Sidecar;
4+
5+
abstract class Runtime
6+
{
7+
public const NODEJS_14 = 'nodejs14.x';
8+
public const NODEJS_12 = 'nodejs12.x';
9+
public const NODEJS_10 = 'nodejs10.x';
10+
public const PYTHON_39 = 'python3.9';
11+
public const PYTHON_38 = 'python3.8';
12+
public const PYTHON_37 = 'python3.7';
13+
public const PYTHON_36 = 'python3.6';
14+
public const PYTHON_27 = 'python2.7';
15+
public const RUBY_27 = 'ruby2.7';
16+
public const RUBY_25 = 'ruby2.5';
17+
public const JAVA_11 = 'java11';
18+
public const JAVA_8_LINUX2 = 'java8.al2';
19+
public const JAVA_8 = 'java8';
20+
public const GO_1X = 'go1.x';
21+
public const DOT_NET_31 = 'dotnetcore3.1';
22+
public const DOT_NET_21 = 'dotnetcore2.1';
23+
}

0 commit comments

Comments
 (0)