# Path: neckbeard/output.py
# DEFAULT_LOG_LEVEL = logging.INFO
# LEVEL_COLORS = {
#     'WARNING': BLUE,
#     'INFO': GREEN,
#     'DEBUG': DARK_GRAY,
#     'CRITICAL': RED,
#     'ERROR': RED
# }
# LOGGERS = [
#     'cli',
#     'configuration',
#     'loader',
#     'environment_manager',
#     'actions.view',
#     'actions.up',
#     'timer',
# ]
# class ColoredFormatter(logging.Formatter):
# class TimingFormatter(logging.Formatter):
#     def format(self, record):
#     def format(self, record):
# def configure_logging(level=logging.INFO):


import logging
import time
import boto.exception
import dateutil.parser
import requests
from boto.ec2 import elb
from requests.exceptions import (
    ConnectionError,
    Timeout,
    RequestException,
)
from simpledb import models
from neckbeard.output import fab_out_opts
    # for one-time operations per node. Idempotency is preferred, but this is a
    # shortcut towards some speed improvements. We only need to do EBS volume
    # mounting on the first run, for example.
    initial_deploy_complete = models.NumberField(default=0, required=True)

    def __init__(self, *args, **kwargs):
        self.ec2conn = None
        self.rdsconn = None
        self.elbconn = None
        self._boto_instance = None
        self._deployment_info = None
        super(InfrastructureNode, self).__init__(*args, **kwargs)

    def __str__(self):
        if self.aws_type in NODE_AWS_TYPES:
            output_str = '%s:%s[%s]<%s>' % (
                self.aws_type,
                self.name,
                self.aws_id,
                self.creation_date,
            )
            return output_str

        return super(InfrastructureNode, self).__str__()

    def save(self):
        # Until this is well-tested, I don't want anyone running this code and
        # actually writing to a SimpleDB Domain. This is a "permanent mock"
        # until we think this functionality is safe/stable
        logger.critical("Called save on %s", self)

# Path: neckbeard/output.py
# DEFAULT_LOG_LEVEL = logging.INFO
# LEVEL_COLORS = {
#     'WARNING': BLUE,
#     'INFO': GREEN,
#     'DEBUG': DARK_GRAY,
#     'CRITICAL': RED,
#     'ERROR': RED
# }
# LOGGERS = [
#     'cli',
#     'configuration',
#     'loader',
#     'environment_manager',
#     'actions.view',
#     'actions.up',
#     'timer',
# ]
# class ColoredFormatter(logging.Formatter):
# class TimingFormatter(logging.Formatter):
#     def format(self, record):
#     def format(self, record):
# def configure_logging(level=logging.INFO):


# Path: neckbeard/cloud_resource.py
import logging
import time
import boto.exception
import dateutil.parser
import requests
from boto.ec2 import elb
from requests.exceptions import (
    ConnectionError,
    Timeout,
    RequestException,
)
from simpledb import models
from neckbeard.output import fab_out_opts

    # for one-time operations per node. Idempotency is preferred, but this is a
    # shortcut towards some speed improvements. We only need to do EBS volume
    # mounting on the first run, for example.
    initial_deploy_complete = models.NumberField(default=0, required=True)

    def __init__(self, *args, **kwargs):
        self.ec2conn = None
        self.rdsconn = None
        self.elbconn = None
        self._boto_instance = None
        self._deployment_info = None
        super(InfrastructureNode, self).__init__(*args, **kwargs)

    def __str__(self):
        if self.aws_type in NODE_AWS_TYPES:
            output_str = '%s:%s[%s]<%s>' % (
                self.aws_type,
                self.name,
                self.aws_id,
                self.creation_date,
            )
            return output_str

        return super(InfrastructureNode, self).__str__()

    def save(self):
        # Until this is well-tested, I don't want anyone running this code and
        # actually writing to a SimpleDB Domain. This is a "permanent mock"
        # until we think this functionality is safe/stable
        logger.critical("Called save on %s", self)

        return