debian-mirror-gitlab/app/uploaders/terraform/versioned_state_uploader.rb
2020-11-24 15:15:51 +05:30

13 lines
254 B
Ruby

# 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