lib/stashify/file/google/cloud/storage.rb in stashify-google-cloud-storage-2.0.0 vs lib/stashify/file/google/cloud/storage.rb in stashify-google-cloud-storage-3.0.0

- old
+ new

@@ -13,9 +13,20 @@ end def contents @bucket.file(path).download.string end + + def write(contents) + @bucket.create_file( + StringIO.new(contents), + path, + ) + end + + def delete + @bucket.file(path).delete + end end end end end end