Ruby google-cloud-storage

From wikinotes

Documentation

api docs https://cloud.google.com/ruby/docs/reference/google-cloud-storage/latest

Usage

project = Google::Cloud::Storage.new(project_id: "foo")
bucket = project.bucket("my_bucket")

bucket.upload_file(StringIO.new("hi"), "/some/path.txt")
bucket.create_file("/some/path.txt")
bucket.file("/some/path.txt").download  # => StringIO