Welcome to mirror list, hosted at ThFree Co, Russian Federation.

delete.rb « state « terraform « mutations « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f08219cb3954c8baef202b12128c3e60bf817e9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module Mutations
  module Terraform
    module State
      class Delete < Base
        graphql_name 'TerraformStateDelete'

        def resolve(id:)
          state = authorized_find!(id: id)
          state.destroy

          { errors: errors_on_object(state) }
        end
      end
    end
  end
end