From b0cc1c3577d50940badf28e60c6bbfc155ff5ffc Mon Sep 17 00:00:00 2001 From: Mark Gilbert <50398495+MarkProminic@users.noreply.github.com> Date: Mon, 8 Jan 2024 22:00:10 -0600 Subject: [PATCH] fix: linting changes --- lib/vagrant-zones/action/package.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/vagrant-zones/action/package.rb b/lib/vagrant-zones/action/package.rb index eff04b7..b47a1ec 100644 --- a/lib/vagrant-zones/action/package.rb +++ b/lib/vagrant-zones/action/package.rb @@ -77,7 +77,7 @@ def call(env) include_files = files end - copy_include_files(include_files, tmp_dir, env[:ui]) + copy_include_files(include_files, tmp_dir) ## Create the Metadata and Vagrantfile Dir.chdir(tmp_dir) @@ -89,7 +89,7 @@ def call(env) 'format' => 'zss', 'kernel' => kernel, 'url' => 'https://app.vagrantup.com/#{vcc}/boxes/#{boxshortname}' - } + } File.write('./metadata.json', metadata_content_hash) @@ -100,7 +100,7 @@ def call(env) Vagrant.configure("2") do |config| Hosts.configure(config, settings) end} - vagrantfile_content = File.read(user_vagrantfile ) if File.exist?(user_vagrantfile) + vagrantfile_content = File.read(user_vagrantfile) if File.exist?(user_vagrantfile) File.write('./Vagrantfile', vagrantfile_content) ## Create the Box file @@ -131,7 +131,7 @@ def snapshot_send(datasetpath, destination, datetime, uii, config) # 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) + def copy_include_files(include_files, destination) include_files.each do |from, dest| include_directory = Pathname.new(destination) to = include_directory.join(dest)