# Path: baleen/config.py
# class MongoConfiguration(confire.Configuration):
# class ServerConfiguration(confire.Configuration):
# class BaleenConfiguration(confire.Configuration):
#     CONF_PATHS = [
#         "/etc/baleen.yaml",                      # System configuration
#         os.path.expanduser("~/.baleen.yaml"),    # User specific config
#         os.path.abspath("conf/baleen.yaml"),     # Local configuration
#     ]
# 
# Path: baleen/utils/timez.py
# HUMAN_DATETIME   = "%a %b %d %H:%M:%S %Y %z"


import baleen
import baleen.models as db
from commis import Command
from baleen.config import settings
from baleen.utils.timez import HUMAN_DATETIME
        )

        latest = db.Job.objects.order_by('-started').first()
        output.extend([
            u"",
            u"Latest Job: ",
            u"    Type: {} v{}".format(latest.name, latest.version),
            u"    Job ID: {}".format(latest.jobid),
            u"    Started: {}".format(latest.started.strftime(HUMAN_DATETIME))
        ])

        if latest.finished:
            if latest.failed:
                output.append(u"    Failed: {}".format(latest.reason))
            else:
                output.append(u"    Finished: {}".format(latest.finished.strftime(HUMAN_DATETIME)))
                output.append(u"    Counts:")
                output.append(u"      " + u"\n      ".join([u"{}: {}".format(*item) for item in latest.counts.items()]))
                output.append(u"    Errors:")
                output.append(u"      " + u"\n      ".join([u"{}: {}".format(*item) for item in latest.errors.items()]))
        else:
            output.append(u"    Currently Running")

        latest = db.Feed.objects.order_by('-updated').first()
        output.extend([
            u"",
            u"Latest Feed: ",
            u"    Title: \"{}\"".format(latest.title),
            u"    eTag: \"{}\"".format(latest.etag),
            u"    Modified: {}".format(latest.modified),

# Path: baleen/config.py
# class MongoConfiguration(confire.Configuration):
# class ServerConfiguration(confire.Configuration):
# class BaleenConfiguration(confire.Configuration):
#     CONF_PATHS = [
#         "/etc/baleen.yaml",                      # System configuration
#         os.path.expanduser("~/.baleen.yaml"),    # User specific config
#         os.path.abspath("conf/baleen.yaml"),     # Local configuration
#     ]
# 
# Path: baleen/utils/timez.py
# HUMAN_DATETIME   = "%a %b %d %H:%M:%S %Y %z"


# Path: baleen/console/commands/summary.py
import baleen
import baleen.models as db
from commis import Command
from baleen.config import settings
from baleen.utils.timez import HUMAN_DATETIME

        )

        latest = db.Job.objects.order_by('-started').first()
        output.extend([
            u"",
            u"Latest Job: ",
            u"    Type: {} v{}".format(latest.name, latest.version),
            u"    Job ID: {}".format(latest.jobid),
            u"    Started: {}".format(latest.started.strftime(HUMAN_DATETIME))
        ])

        if latest.finished:
            if latest.failed:
                output.append(u"    Failed: {}".format(latest.reason))
            else:
                output.append(u"    Finished: {}".format(latest.finished.strftime(HUMAN_DATETIME)))
                output.append(u"    Counts:")
                output.append(u"      " + u"\n      ".join([u"{}: {}".format(*item) for item in latest.counts.items()]))
                output.append(u"    Errors:")
                output.append(u"      " + u"\n      ".join([u"{}: {}".format(*item) for item in latest.errors.items()]))
        else:
            output.append(u"    Currently Running")

        latest = db.Feed.objects.order_by('-updated').first()
        output.extend([
            u"",
            u"Latest Feed: ",
            u"    Title: \"{}\"".format(latest.title),
            u"    eTag: \"{}\"".format(latest.etag),
            u"    Modified: {}".format(latest.modified),

            u"    Updated: {}".format(latest.updated.strftime(HUMAN_DATETIME)),