You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jclouds.apache.org by Adi <no...@github.com> on 2013/05/31 15:30:38 UTC

[jclouds-examples] BlobStore file system api usage in scala (#4)

I could not find right example for BlobStore&#39;s filesystem api usage. This example demonstrates that in scala. Please merge it if you think it can be useful to others.
You can merge this Pull Request by running:

  git pull https://github.com/adisesha/jclouds-examples master

Or you can view, comment on it, or merge it online at:

  https://github.com/jclouds/jclouds-examples/pull/4

-- Commit Summary --

  * Demonstrates usage of blobstore file system api in scala
  * Formatted

-- File Changes --

    A blobstore-scala-filesystem/README.md (13)
    A blobstore-scala-filesystem/build.sbt (9)
    A blobstore-scala-filesystem/src/main/scala/Main.scala (57)

-- Patch Links --

https://github.com/jclouds/jclouds-examples/pull/4.patch
https://github.com/jclouds/jclouds-examples/pull/4.diff


Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> +object Main {
> +
> +  def main(args: Array[String]) {
> +    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)
> +
> +    val context = ContextBuilder.newBuilder("filesystem")
> +      .overrides(properties)
> +      .buildView(classOf[BlobStoreContext])
> +
> +    try {

Can you replace this with a Scala `Try` block to make it less Java-like?

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Adi <no...@github.com>.
@demobox sorry I didn't notice your previous message until now. Once again, thanks for your time.

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> +  val context = ContextBuilder.newBuilder("filesystem")
> +    .overrides(properties)
> +    .buildView(classOf[BlobStoreContext])
> +
> +  try {
> +    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")
> +  } finally {
> +    context.close()
> +  }

> Does it make sense to introduce one library just for single case?

Well, this is an *example*, but in a real jclouds app you'd likely have many cases where the ARM code would be applicable. So I personally don't think it would be a bad idea to demonstrate this pattern to users.

The main reason I suggested this was to demonstrate some more idiomatic Scala and remove constructs that look very much like Java ported to Scala.

I think most developers that know a bit of Scala would not find it too hard to port the blobstore-basics demo to Scala line by line, so the benefit of a Scala example is enhanced, in my view, by focussing also on "good Scala style".

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Adi <no...@github.com>.
Closed #4.

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +import org.jclouds.blobstore.BlobStoreContext
> +import org.jclouds.ContextBuilder
> +import org.jclouds.filesystem.reference.FilesystemConstants
> +
> +
> +/**
> + * Demonstrates use of  BlobStore filesystem api
> + * @author adisesha
> + */
> +object Main {

`extends App`? Seems more common Scala usage than a `main` method.

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> +  val context = ContextBuilder.newBuilder("filesystem")
> +    .overrides(properties)
> +    .buildView(classOf[BlobStoreContext])
> +
> +  try {
> +    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")
> +  } finally {
> +    context.close()
> +  }

See the [Scaladoc](http://www.scala-lang.org/api/current/index.html#scala.util.Try) or the "For comprehensions" section of this post: http://danielwestheide.com/blog/2012/12/26/the-neophytes-guide-to-scala-part-6-error-handling-with-try.html

But seeing as the context is a closable resource, using [Scala ARM](https://github.com/jsuereth/scala-arm/blob/master/notes/about.markdown) would probably make even more sense here.

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> @@ -0,0 +1,9 @@
> +name :="blobstore-scala-filesystem"
> +
> +scalaVersion :="2.9.2"

Use a 2.10.x Scala version?

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Adi <no...@github.com>.
Ok. I thought you wanted me to squash last 2 commits. Now I squashed all my commits into single commit(5cef957). Let me know, if you intend it to be different.

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> @@ -0,0 +1,13 @@
> +# blobstore-scala-filesystem
> +This is a simple example command line client that creates a container, and 'test' file in a [BlobStore](http://jclouds.incubator.apache.org/documentation/userguide/blobstore-guide/)

..."example command line client that creates a container and test blob in a filesystem \[BlobStore\](...) using Scala. This example..."

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> @@ -0,0 +1,13 @@
> +# blobstore-scala-filesystem
> +This is a simple example command line client that creates a container, and 'test' file in a [BlobStore](http://code.google.com/p/jclouds/wiki/BlobStore)

Please link to the Javadocs (http://javadocs.jclouds.cloudbees.net/) or new user guide (http://jclouds.incubator.apache.org/documentation/userguide/blobstore-guide/) instead.

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Adi <no...@github.com>.
> +object Main {
> +
> +  def main(args: Array[String]) {
> +    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)
> +
> +    val context = ContextBuilder.newBuilder("filesystem")
> +      .overrides(properties)
> +      .buildView(classOf[BlobStoreContext])
> +
> +    try {

I am unable to find alternative for this. Can you please suggest one? 

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Adi <no...@github.com>.
> +  val context = ContextBuilder.newBuilder("filesystem")
> +    .overrides(properties)
> +    .buildView(classOf[BlobStoreContext])
> +
> +  try {
> +    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")
> +  } finally {
> +    context.close()
> +  }

I looked at scala-arm after your first review. Does it make sense to introduce one library just for single case? Thanks for pointing to the article. I will look at this.

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> it's a good Scala learning experience for me

Glad to hear! Then the reviews are serving their purpose ;-)

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> +  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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> +  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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> +import org.jclouds.blobstore.BlobStoreContext
> +import org.jclouds.ContextBuilder
> +import org.jclouds.filesystem.reference.FilesystemConstants
> +import resource._
> +
> +
> +/**
> + * Demonstrates use of  BlobStore filesystem api
> + * @author adisesha
> + */
> +object Main extends App {
> +  require(args.length == 1, "Invalid number of parameters. Syntax is: \"basedirectory\" ")
> +
> +  val baseDir = args(0)
> +
> +  //Base directory property

`properties.setProperty(FilesystemConstants.PROPERTY_BASEDIR, baseDir)` says the same as this comment, so the comment should either explain more or be removed

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +
> +import org.jclouds.blobstore.BlobStoreContext
> +import org.jclouds.ContextBuilder
> +import org.jclouds.filesystem.reference.FilesystemConstants
> +import resource._
> +
> +
> +/**
> + * Demonstrates use of  BlobStore filesystem api

```
/**
 * Demonstrates the use of the filesystem {@link BlobStore} in Scala
 * 
 * Usage is: run \"basedir\"
 * 
 * @author adisesha
 */
```

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Adi <no...@github.com>.
Closing PR because of too many commits

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Adi <no...@github.com>.
Done. 

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> @@ -0,0 +1,13 @@
> +# blobstore-scala-filesystem
> +This is a simple example command line client that creates a container, and 'test' file in a [BlobStore](http://jclouds.incubator.apache.org/documentation/userguide/blobstore-guide/)
> +using 'filesystem' api in scala. This example uses [scala-arm](https://github.com/jsuereth/scala-arm) for managing [BlobStoreContext](http://javadocs.jclouds.cloudbees.net/org/jclouds/blobstore/BlobStoreContext.html)
> +## Build
> +Ensure that sbt is installed. Tested with 0.12.2
> +## Run
> +Go to root of project and run sbt. Invoke 'run basedir'. 'basedir' is the folder where the container, and file will be stored

"Run sbt from the root of your project and invoke `run _basedir_`, where _basedir_ is a directory in which the container will be created. E.g. if your basedir is `/home/blobstore`, run
```
run /home/blobstore
```

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> Done.

Thanks! As a final step, could you squash all your commits?

@abayer Any Scala thoughts from you..? ;-)

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
What is the main purpose of this example: to demonstrate using _BlobStore_ from Scala, or to demonstrate using the _filesystem API_ from Scala? If the former, is there any specific reason to limit the example to a specific blobstore provider? Would it be useful to create a Scala version of [blobstore-basics](https://github.com/jclouds/jclouds-examples/blob/master/blobstore-basics/) instead?

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +
> +import org.jclouds.blobstore.BlobStoreContext
> +import org.jclouds.ContextBuilder
> +import org.jclouds.filesystem.reference.FilesystemConstants
> +import resource._
> +
> +
> +/**
> + * Demonstrates use of  BlobStore filesystem api
> + * @author adisesha
> + */
> +object Main extends App {
> +  require(args.length == 1, "Invalid number of parameters. Syntax is: \"basedirectory\" ")

`Usage is: run \"basedir\""`

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> + * Demonstrates use of  BlobStore filesystem api
> + * @author adisesha
> + */
> +object Main extends App {
> +  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])).acquireFor(context => {

Use `acquireAndGet` (since we're not using the `Either` return type of `acquireFor`) as in the example on the [usage page](http://jsuereth.com/scala-arm/usage.html)?
```
managed(ContextBuilder.newBuilder("filesystem").overrides(properties).buildView(classOf[BlobStoreContext])) acquireAndGet {
  context =>
  ...
}
```

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
@adisesha Could you kindly squash this down to one commit when you have a minute? Looking forward to merging this!

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Adi <no...@github.com>.
I made changes based on your review. Thanks for the review.

My intention is to demonstrate 'filesystem' api usage. It's just that my actual project is in scala, I created this. I have not tried s3 or other providers. I need to use s3 in my project soon. I can rewrite [blobstore-basics](https://github.com/jclouds/jclouds-examples/blob/master/blobstore-basics/) when I am familiar with that.  

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> @@ -0,0 +1,10 @@
> +name :="blobstore-scala-filesystem"
> +
> +scalaVersion :="2.10.1"
> +
> +version :="1.0-SNAPSHOT"
> +
> +libraryDependencies ++= Seq( "org.jclouds.api" % "filesystem" % "1.6.0",
> +                             "com.google.code.findbugs" % "jsr305" % "1.3.+",
> +                              "com.jsuereth" %% "scala-arm" % "1.3"

[minor] Spacing before the scala-arm dep

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> Now I squashed all my commits into single commit

This pull request still contains 12 commits, it seems. Could you either update this PR or create a new one with your single, squashed commit? Thanks!

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Adi <no...@github.com>.
> +  val context = ContextBuilder.newBuilder("filesystem")
> +    .overrides(properties)
> +    .buildView(classOf[BlobStoreContext])
> +
> +  try {
> +    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")
> +  } finally {
> +    context.close()
> +  }

Makes sense. Done with changes. Next time, I will try to make it less painful to you :)

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Adi <no...@github.com>.
Done with changes. Once again, thanks for taking time to review this. Although it's a small example, it's a good Scala learning experience for me.

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> +    //Base directory property
> +    val properties=new java.util.Properties()
> +    properties.setProperty(FilesystemConstants.PROPERTY_BASEDIR,baseDir)
> +
> +    val context = ContextBuilder.newBuilder("filesystem")
> +      .overrides(properties)
> +      .buildView(classOf[BlobStoreContext])
> +
> +    try {
> +      val blobStore = context.getBlobStore
> +      blobStore.createContainerInLocation(null, "test")
> +
> +      val blob = blobStore.blobBuilder("test").payload("testdata").build()
> +      blobStore.putBlob("test", blob)
> +
> +      println("File \"test\" stored under,"+baseDir+System.getProperty("file.separator")+"test")

Use `s"..."` instead as it's nicer Scala syntax?

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
Back from vacation...final round of cleanup suggestions coming up!

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> sorry I didn't notice your previous message until now

No problem! I don't quite understand your last commit, though? Could you rebase your branch and squash all your commits so there's only **one** commit we need to merge? If that doesn't make any sense just let me know.

Thanks!

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> +
> +
> +/**
> + * Demonstrates use of  BlobStore filesystem api
> + * @author adisesha
> + */
> +object Main extends App {
> +  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

[minor] `// Using`

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> @@ -0,0 +1,13 @@
> +# blobstore-scala-filesystem
> +This is a simple example command line client that creates a container, and 'test' file in a [BlobStore](http://jclouds.incubator.apache.org/documentation/userguide/blobstore-guide/)
> +using 'filesystem' api in scala. This example uses [scala-arm](https://github.com/jsuereth/scala-arm) for managing [BlobStoreContext](http://javadocs.jclouds.cloudbees.net/org/jclouds/blobstore/BlobStoreContext.html)

"...\[scala-arm\](...) to manage the [..."

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

Re: [jclouds-examples] BlobStore file system api usage in scala (#4)

Posted by Andrew Phillips <no...@github.com>.
> Closing PR because of too many commits

Thanks...looking forward to the updated one!

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