Skip to content

Commit

Permalink
Merge branch 'hotfix/fix_docs'
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew J. Sonne committed Jul 1, 2017
2 parents c358048 + d9c2f38 commit 12b3d60
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
8 changes: 3 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
=====================================
awslambdahelper 1.1.11 |github_link|_
=====================================
======================
awslambdahelper 1.1.11
======================

.. image:: https://www.quantifiedcode.com/api/v1/project/bb53f496a1cc45f780342fc973270298/badge.svg
:target: https://www.quantifiedcode.com/app/project/bb53f496a1cc45f780342fc973270298
Expand Down Expand Up @@ -70,5 +70,3 @@ Create AWS Config Rule
That's it! For a more indepth guide, `read the docs <http://lambda.awshelpers.com/>`_.


.. |github_link| image:: github.svg
.. _github_link: http://github.com/drewsonne/awslambdahelper/
1 change: 0 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
:maxdepth: 2
:numbered: 3

introduction
userguide
api
internal
Expand Down
1 change: 0 additions & 1 deletion docs/userguide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ Developer Guide

.. include:: ./awsconfig.rst
.. include:: ./cloudformation.rst

18 changes: 11 additions & 7 deletions src/main/python/awslambdahelper/cli.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# -*- coding: utf-8 -*-
"""
Classes encapsulationg the functionality for the lambd
"""
import ConfigParser
import zipfile

Expand Down Expand Up @@ -123,6 +127,11 @@ class LambdahelperBundler(object):
Handler for the cli tool to archive code up for Lambda
"""

def __init__(self):
self.target_directory = None
self.working_directory = None
self.requirements_path = None

def run(self, args=None):
"""
Entrypoint for our bundler cli tool
Expand Down Expand Up @@ -158,8 +167,8 @@ def copy_lambda_package_files(self):
:return:
"""
for file in glob.glob(self.target_directory + os.path.sep + "*.py"):
shutil.copy(file, self.working_directory)
for file_name in glob.glob(self.target_directory + os.path.sep + "*.py"):
shutil.copy(file_name, self.working_directory)

shutil.copy(self.requirements_path, self.working_directory)

Expand Down Expand Up @@ -240,8 +249,6 @@ def create_archive(self):
Given a target_directory to compress, and a working_directory to place the files in, compress them
in a zip archive.
:param target_directory:
:param working_directory:
:return:
"""
self.zipdir(self.source_path, self.source_path.rstrip('/') + '/')
Expand All @@ -253,10 +260,7 @@ def zipdir(self, path, zip_path_prefix):
Recursively walk our directory path, and add files to the zip archive.
:param path: Path to walk which contains our files to be added to the zip archive.
:param ziph: zipfile handler
:type ziph: zipfile.ZipFile
:param zip_path_prefix:
:type basestring
:return:
"""
# ziph is zipfile handle
Expand Down

0 comments on commit 12b3d60

Please sign in to comment.