debian-mirror-gitlab/app/uploaders/terraform/versioned_state_uploader.rb

14 lines
254 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# 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