debian-mirror-gitlab/app/graphql/mutations/terraform/state/base.rb
2021-01-30 21:13:34 +05:30

22 lines
459 B
Ruby

# frozen_string_literal: true
module Mutations
module Terraform
module State
class Base < BaseMutation
authorize :admin_terraform_state
argument :id,
Types::GlobalIDType[::Terraform::State],
required: true,
description: 'Global ID of the Terraform state'
private
def find_object(id:)
GitlabSchema.find_by_gid(id)
end
end
end
end
end