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

versioned_state_uploader.rb « terraform « uploaders « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: be07993da0fe04b8e995dd77db62a87e653e5df1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module Terraform
  class VersionedStateUploader < StateUploader
    def filename
      "#{model.version}.tfstate"
    end

    def store_dir
      Gitlab::HashedPath.new(model.uuid, root_hash: project_id)
    end
  end
end