debian-mirror-gitlab/app/controllers/projects/google_cloud_controller.rb

13 lines
465 B
Ruby
Raw Normal View History

2021-11-18 22:05:49 +05:30
# frozen_string_literal: true
2022-01-26 12:08:38 +05:30
class Projects::GoogleCloudController < Projects::GoogleCloud::BaseController
2021-11-18 22:05:49 +05:30
def index
2021-12-11 22:18:48 +05:30
@js_data = {
2022-01-26 12:08:38 +05:30
screen: 'home',
2021-12-11 22:18:48 +05:30
serviceAccounts: GoogleCloud::ServiceAccountsService.new(project).find_for_project,
2022-01-26 12:08:38 +05:30
createServiceAccountUrl: project_google_cloud_service_accounts_path(project),
2021-12-11 22:18:48 +05:30
emptyIllustrationUrl: ActionController::Base.helpers.image_path('illustrations/pipelines_empty.svg')
}.to_json
2021-11-18 22:05:49 +05:30
end
end