This repository has been archived by the owner on Jan 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deprecation warnings prior to rename
- Loading branch information
Showing
4 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
import boto3 | ||
from pybuilder.ci_server_interaction import flush_text_line | ||
|
||
deprecation_message = """ | ||
You seem to be using an outdated version of this plugin. | ||
It has recently been renamed from 'pybuilder_aws_lambda_plugin' to | ||
'pybuilder_aws_plugin'. Please update your build.py! | ||
""".strip() | ||
|
||
|
||
def upload_helper(logger, bucket_name, keyname, data, acl): | ||
s3 = boto3.resource('s3') | ||
logger.info( | ||
'Uploading lambda-zip to bucket: "{0}" as key: "{1}"' | ||
.format(bucket_name, keyname)) | ||
s3.Bucket(bucket_name).put_object(Key=keyname, Body=data, ACL=acl) | ||
|
||
|
||
def teamcity_helper(tc_param, keyname): | ||
flush_text_line( | ||
"##teamcity[setParameter name='{0}' value='{1}']".format( | ||
tc_param, keyname | ||
)) | ||
)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters