You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given(/^I have a sample local (tgz|tar|zip|directory|relative_directory|custom_event_directory|directory_with_destination_files) bundle$/)do |bundle_type|
24
+
Given(/^I have a sample local (tgz|tar|zip|zipped_directory|directory|relative_directory|custom_event_directory|directory_with_destination_files) bundle$/)do |bundle_type|
log(:info,"Stripping leading directory from archive bundle contents.")
412
-
413
-
# Find leading directory to remove
414
-
archive_root_files=Dir.entries(dst)
415
-
archive_root_files.delete_if{ |name| name == '.' || name == '..'}
401
+
archive_root_files=Dir.entries(dst)
402
+
archive_root_files.delete_if{ |name| name == '.' || name == '..'}
416
403
417
-
if(archive_root_files.size != 1)
418
-
log(:warn,"Expected archive to have a single root directory containing the actual bundle root, but it had #{archive_root_files.size} entries instead. Skipping leading directory removal and using archive as is.")
0 commit comments