> +  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])).acquireFor(context => {
> +
> +    val blobStore = context.getBlobStore
> +    blobStore.createContainerInLocation(null, "test")
> +
> +    val blob = blobStore.blobBuilder("test").payload("testdata").build()
> +    blobStore.putBlob("test", blob)
> +
> +    val filePath = baseDir + System.getProperty("file.separator") + "test"
> +    println(s"File ${'"'}test${'"'} stored under,$filePath")
> +

```
println(s"File 'test' stored under: $filePath")
```
? Just so people don't have to try to figure out the string interpolation 
escape syntax for `"`...

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

Reply via email to