@manager.option('-e', '--env', default='dev', help="runtime environment [default 'dev']")
def sync_resources(env):
    manager.init_for(env)
    print "Syncing resources with Lastuser..."
    resources = manager.app.lastuser.sync_resources()['results']

    for rname, resource in resources.iteritems():
        if resource['status'] == 'error':
            print "Error for %s: %s" % (rname, resource['error'])
        else:
            print "Resource %s %s..." % (rname, resource['status'])
            for aname, action in resource['actions'].iteritems():
                if action['status'] == 'error':
                    print "\tError for %s/%s: %s" % (rname, aname, action['error'])
                else:
                    print "\tAction %s/%s %s..." % (rname, aname, resource['status'])
    print "Resources synced..."
Return case-sensitive package name given any-case package name
dataset/ETHPy150Open hasgeek/coaster/coaster/manage.py/sync_resources--crossover with--dataset/ETHPy150Open cakebread/yolk/yolk/yolklib.py/Distributions.case_sensitive_name