debian-mirror-gitlab/app/graphql/mutations/terraform/state/base.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
460 B
Ruby
Raw Normal View History

2021-01-29 00:20:46 +05:30
# 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,
2021-03-08 18:12:59 +05:30
description: 'Global ID of the Terraform state.'
2021-01-29 00:20:46 +05:30
private
def find_object(id:)
GitlabSchema.find_by_gid(id)
end
end
end
end
end