Skip to content
Browse files

laying out ec2audit structure

  • Loading branch information...
0 parents commit 92e76eedaf65d455a25cab8e9d0468a62beba5f9 @cosmin cosmin committed Jul 15, 2012
Showing with 73 additions and 0 deletions.
  1. +9 −0 .gitignore
  2. +4 −0 README.rst
  3. +27 −0 bin/ec2audit
  4. +1 −0 ec2audit/__init__.py
  5. +3 −0 requirements.txt
  6. +27 −0 setup.py
  7. +2 −0 test-requirements.txt
9 .gitignore
@@ -0,0 +1,9 @@
+*.pyc
+*.egg-info
+
+/env
+/build
+/target
+/cache
+/dist
+/out
4 README.rst
@@ -0,0 +1,4 @@
+ec2audit
+======
+
+Dump all EC2 information to a folder suitable for version control
27 bin/ec2audit
@@ -0,0 +1,27 @@
+#!/usr/bin/env python
+
+"""ec2audit
+
+Usage:
+ ec2audit [options] <region>
+ ec2audit -h | --help
+ ec2audit -v | --version
+
+Options:
+ -h --help Show this screen.
+ -v --version Show the version.
+
+ -o --output=OUTPUT The output directory, stdout otherwise
+ -f --format=FORMAT The output format: json or yaml [default: yaml]
+
+ -I --access-key-id=ACCESS_KEY_ID AWS access key to use (default: $AWS_ACCESS_KEY_ID)[.
+ -S --secret-key=SECRET_KEY AWS secret key to use (default: $AWS_SECRET_ACCESS_KEY).
+ -K --secret-key-file=SECRET_KEY_FILE File containing AWS secret key to use.
+"""
+
+from docopt import docopt
+
+from ec2audit import __version__, app
+
+params = docopt(__doc__, version='ec2audit %s' % __version__)
+app.run(params)
1 ec2audit/__init__.py
@@ -0,0 +1 @@
+__version__ = "0.1"
3 requirements.txt
@@ -0,0 +1,3 @@
+boto>=2.5.2
+docopt>=0.4.1
+PyYAML>=3.10
27 setup.py
@@ -0,0 +1,27 @@
+import os
+from setuptools import setup
+
+from ec2audit import __version__
+
+def read(fname):
+ return open(os.path.join(os.path.dirname(__file__), fname)).read()
+
+setup(name='ec2audit',
+ version=__version__,
+ description='Dump all EC2 information to a folder suitable for version control',
+ long_description=read('README.rst'),
+ url='http://github.com/SimpleFinance/ec2audit',
+ author='Cosmin Stejerean',
+ author_email='cosmin@offbytwo.com',
+ license='Apache License 2.0',
+ packages=['ec2audit'],
+ scripts=['bin/ec2audit'],
+ tests_require=open('test-requirements.txt').readlines(),
+ install_requires=open('requirements.txt').readlines(),
+ classifiers=[
+ 'Development Status :: 3 - Alpha',
+ 'Environment :: Console',
+ 'License :: OSI Approved :: Apache Software License',
+ 'Topic :: Utilities'
+ ]
+ )
2 test-requirements.txt
@@ -0,0 +1,2 @@
+mock==0.8.0
+nose==1.1.2

0 comments on commit 92e76ee

Please sign in to comment.
Something went wrong with that request. Please try again.