> +  require(args.length == 1, "Invalid number of parameters. Syntax is: 
> \"basedirectory\" ")
> +
> +  val baseDir = args(0)
> +
> +  //Base directory property
> +  val properties = new java.util.Properties()
> +  properties.setProperty(FilesystemConstants.PROPERTY_BASEDIR, baseDir)
> +
> +  //Using scala-arm for context management. See 
> https://github.com/jsuereth/scala-arm
> +  managed(ContextBuilder.newBuilder("filesystem")
> +    .overrides(properties)
> +    .buildView(classOf[BlobStoreContext]))
> +    .acquireAndGet(context => {
> +
> +    val blobStore = context.getBlobStore
> +    blobStore.createContainerInLocation(null, "test")

Rather than hardcoding the blob name, how about making that an argument to the 
application too?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/4/files#r4850016

Reply via email to