Skip to content

Commit 0643783

Browse files
committed
Rename task.zip -> function.zip
1 parent 109fa36 commit 0643783

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ AWS Lambda change log
33

44
## ?.?.? / ????-??-??
55

6+
## 0.5.0 / 2021-08-22
7+
8+
* Renamed `task.zip` to `function.zip` in order not to introduce more
9+
vocabulary than necessary
10+
(@thekid)
11+
612
## 0.4.0 / 2021-08-22
713

814
* Renamed `xp lambda invoke` to `xp lambda test` to make clear we're

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ $ xp lambda package Greet.class.php
8585
$ aws lambda create-function \
8686
--function-name greet \
8787
--handler Greet \
88-
--zip-file fileb://./task.zip \
88+
--zip-file fileb://./function.zip \
8989
--runtime provided \
9090
--role "arn:aws:iam::XXXXXXXXXXXX:role/service-role/InvokeLambda" \
9191
--region us-east-1 \
@@ -114,7 +114,7 @@ After having initially created your lambda, you can update its code as follows:
114114
$ xp lambda package Greet.class.php
115115
$ aws lambda update-function-code \
116116
--function-name greet \
117-
--zip-file fileb://./task.zip \
117+
--zip-file fileb://./function.zip \
118118
--publish
119119
```
120120

src/main/php/xp/lambda/Runner.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* ```sh
2323
* $ xp lambda test Greet '{"name":"Test"}'
2424
* ```
25-
* - Package `task.zip` file for deployment, including `src` and `vendor`:
25+
* - Package `function.zip` file for deployment, including `src` and `vendor`:
2626
* ```sh
2727
* $ xp lambda package Greet.class.php
2828
* ```
@@ -112,7 +112,7 @@ public static function main(array $args): int {
112112
return $result;
113113

114114
case 'package':
115-
$target= new Path('task.zip');
115+
$target= new Path('function.zip');
116116
$base= new Folder('.');
117117
$sources= [...array_slice($args, 1), 'src', 'vendor'];
118118
$compression= extension_loaded('zlib') ? Compression::$GZ : Compression::$NONE;

0 commit comments

Comments
 (0)