Skip to content

Commit

Permalink
fix: linting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkProminic authored Jan 9, 2024
1 parent a0b7295 commit bc66f9b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/vagrant-zones/action/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,21 +128,13 @@ def snapshot_send(datasetpath, destination, datetime, uii, config)
puts "#{@pfexec} zfs send -r #{datasetpath}/boot@vagrant_box#{datetime} > #{destination}" if result.zero? && config.debug
end



# This method copies the include files (passed in via command line) to the
# temporary directory so they are included in a sub-folder within the actual box
def copy_include_files(include_files, destination, uii)
include_files.each do |from, dest|
include_directory = Pathname.new(destination)

# We place the file in the include directory
to = include_directory.join(dest)

uii.info I18n.t('vagrant.actions.general.package.packaging', file: from)
FileUtils.mkdir_p(to.parent)

# Copy directory contents recursively.
if File.directory?(from)
FileUtils.cp_r(Dir.glob(from), to.parent, preserve: true)
else
Expand Down

0 comments on commit bc66f9b

Please sign in to comment.