Commit 14c7eb75 authored by Vladimir Shushlin's avatar Vladimir Shushlin

Rename the variable

parent 01eafdbc
......@@ -38,11 +38,11 @@ module Projects
raise InvalidStateError, 'build SHA is outdated for this ref' unless latest?
# Create temporary directory in which we will extract the artifacts
make_secure_tmp_dir(tmp_path) do |archive_path|
extract_archive!(archive_path)
make_secure_tmp_dir(tmp_path) do |tmp_path|
extract_archive!(tmp_path)
# Check if we did extract public directory
archive_public_path = File.join(archive_path, PUBLIC_DIR)
archive_public_path = File.join(tmp_path, PUBLIC_DIR)
raise InvalidStateError, 'pages miss the public folder' unless Dir.exist?(archive_public_path)
raise InvalidStateError, 'build SHA is outdated for this ref' unless latest?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment