Module: GitlabQuality::TestTooling::GcsTools
- Defined in:
- lib/gitlab_quality/test_tooling/gcs_tools.rb
Defined Under Namespace
Classes: GCSMockClient
Class Method Summary collapse
Class Method Details
.gcs_client(project_id:, credentials:, dry_run: false) ⇒ Fog::Storage::Google
GCS Client
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/gitlab_quality/test_tooling/gcs_tools.rb', line 23 def gcs_client(project_id:, credentials:, dry_run: false) if dry_run GCSMockClient.new else Fog::Storage::Google.new( google_project: project_id || raise("Missing Google project_id"), **gcs_creds(credentials) ) end end |