Attempt at proper naming

Using Bucket and Blob as base classes.
This commit is contained in:
2016-11-09 02:14:45 +01:00
parent c06533db5b
commit 4d6bf65a99
5 changed files with 107 additions and 65 deletions

View File

@@ -45,8 +45,8 @@ def size_descriptor(width, height):
@skip_when_testing
def rename_on_gcs(bucket_name, from_path, to_path):
gcs = GoogleCloudStorageBucket(str(bucket_name))
blob = gcs.bucket.blob(from_path)
gcs.bucket.rename_blob(blob, to_path)
blob = gcs.gcs_bucket.blob(from_path)
gcs.gcs_bucket.rename_blob(blob, to_path)
@encoding.route('/zencoder/notifications', methods=['POST'])