Skip to content

Refactor code to be more maintainable #2

Description

@jeffsw

Following the addition of initial layer support, the code is pretty ugly. I'll refactor it a bit later. Some plans:

  • Create a superclass with methods common to AwsLambdaLayer and NewAwsLambdaLayerZip
  • When publishing an NewAwsLambdaLayerZip, return an AwsLambdaLayer object since we can do so
  • separate out a lot of utility functions into their own source file importable by all the others
  • move functions like aws_lambda_update and s3_upload to become methods of a NewAwsLambdaZip or whatever
  • move things from __init__.py

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions