Skip to content

Commit b583c1f

Browse files
chore: Migrate gsutil usage to gcloud storage (#32412)
1 parent df6f67b commit b583c1f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.toys/rad/delete-blob.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def run
2929
end
3030

3131
def list_blobs
32-
capture(["gsutil", "ls", "gs://docs-staging-v2"]).split("\n")
32+
capture(["gcloud", "storage", "ls", "gs://docs-staging-v2"]).split("\n")
3333
end
3434

3535
def filter_blobs blobs

.toys/rad/list-built-versions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
def run
2525
data = {}
26-
capture(["gsutil", "ls", "gs://docs-staging-v2"]).split("\n").each do |url|
26+
capture(["gcloud", "storage", "ls", "gs://docs-staging-v2"]).split("\n").each do |url|
2727
if url =~ %r{^gs://docs-staging-v2/docfx-ruby-(.+)-v(\d+\.\d+\.\d+)\.tar\.gz$}
2828
(data[Regexp.last_match[1]] ||= []) << Gem::Version.new(Regexp.last_match[2])
2929
end

0 commit comments

Comments
 (0)