Skip to content

Commit

Permalink
fix: linting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkProminic committed Jan 9, 2024
1 parent 50a32ec commit 117af25
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/vagrant-zones/action/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ def call(env)

## Create a Vagrantfile or load from Users Defined File
vagrantfile_content = <<~'CODE'
require 'yaml'
require_relative 'Hosts'
settings = YAML::load(File.read("#{File.dirname(__FILE__)}/Hosts.yml"))
Vagrant.configure("2") do |config|
Hosts.configure(config, settings)
end
CODE
require 'yaml'
require_relative 'Hosts'
settings = YAML::load(File.read("#{File.dirname(__FILE__)}/Hosts.yml"))
Vagrant.configure("2") do |config|
Hosts.configure(config, settings)
end
CODE
File.write("#{tmp_dir}/Vagrantfile", vagrantfile_content)

files[env['package.vagrantfile']] = '_Vagrantfile' if env['package.vagrantfile']
Expand All @@ -96,7 +96,7 @@ def call(env)
'url' => "https://app.vagrantup.com/#{vcc}/boxes/#{boxshortname}"
}

metadata_content_hash['kernel'] = kernel if kernel != nil && kernel != false
metadata_content_hash['kernel'] = kernel if !kernel.nil? && kernel != false
File.write("#{tmp_dir}/metadata.json", metadata_content_hash.to_json)

## Create the Box file
Expand Down

0 comments on commit 117af25

Please sign in to comment.