Skip to content

Commit 0128d1b

Browse files
committed
closes #48 code comments
1 parent dc24b33 commit 0128d1b

27 files changed

+95
-18
lines changed

ec2stack/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env python
22
# encoding: utf-8
33

4+
"""This module creates the flask application.
5+
"""
6+
47
import os
58
import sys
69

ec2stack/__main__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env python
22
# encoding: utf-8
33

4+
"""This module is used to launch EC2Stack
5+
"""
6+
47
from werkzeug.serving import run_simple
58
from werkzeug.wsgi import DispatcherMiddleware
69

ec2stack/configure.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env python
22
# encoding: utf-8
33

4+
"""This module provides functions to generate an ec2stack configuration file.
5+
"""
6+
47
import os
58

69
from alembic import command

ec2stack/controllers/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
#!/usr/bin/env python
22
# encoding: utf-8
3+
4+
"""This module contains route handlers for the application.
5+
"""

ec2stack/controllers/default.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def _get_action(action):
8585

8686
def register_secret_key():
8787
"""
88-
Registers a user's API key and secret key
88+
Register a user's API key and secret key
8989
9090
@return: Response.
9191
@raise Ec2stackError: API key already being registered.
@@ -114,7 +114,7 @@ def register_secret_key():
114114

115115
def remove_secret_key():
116116
"""
117-
Remove's a user's API key and secret key
117+
Remove a user's API key and secret key
118118
119119
@return: Response.
120120
@raise Ec2stackError: API key doesn't exist.

ec2stack/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env python
22
# encoding: utf-8
33

4+
"""This module provides core classes.
5+
"""
6+
47
from flask_sqlalchemy import SQLAlchemy
58

69
DB = SQLAlchemy()

ec2stack/errors.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env python
22
# encoding: utf-8
33

4+
"""This module contains functions for error reporting.
5+
"""
6+
47
from ec2stack.core import Ec2stackError
58

69

ec2stack/helpers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env python
22
# encoding: utf-8
33

4+
"""This module contains helper functions used across the package namespace.
5+
"""
6+
47
import os
58
import hmac
69
import hashlib

ec2stack/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/usr/bin/env python
22
# encoding: utf-8
33

4+
"""This module exposes all models.
5+
"""
6+
47
from ec2stack.models.users.models import *

ec2stack/models/users/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env python
22
# encoding: utf-8
33

4+
"""This module creates a user service.
5+
"""
6+
47
from ec2stack.core import Service
58
from ec2stack.models.users.models import User
69

0 commit comments

Comments
 (0)