def createBlobstore()

in src/lambda.d/nexuspreconfigure/createBlobstore.groovy [31:41]


def createBlobstore(Blobstore blobstore) {
    if(!blobStoreManager.get(blobstore.name)) {
        if (blobstore.type == 's3')
            blobStore.createS3BlobStore(blobstore.name, blobstore.config)
        else
            new UnsupportedOperationException(blobstore.type + " is not supported")
    } else {
        return "already exists"
    }
    "success"
}