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 5efd5ae commit 6e0ca30
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/vagrant-zones/action/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,14 @@ def execute(...)
end

def call(env)
@machine = env[:machine]
@driver = @machine.provider.driver
boxname = env['package.output']
mpc = @machine.provider_config
mpc = env[:machine].provider_config
files = {}
raise "#{boxname}: Already exists" if File.exist?(boxname)

## Create Snapshot
FileUtils.mkdir_p("#{Dir.pwd}/_tmp_package")
datasetpath = "#{mpc.boot['array']}/#{mpc.boot['dataset']}/#{@machine.name}"
datasetpath = "#{mpc.boot['array']}/#{mpc.boot['dataset']}/#{env[:machine].name}"
datetime = Time.new.strftime('%Y-%m-%d-%H:%M:%S')
snapshot_create(datasetpath, datetime, env[:ui], mpc)
snapshot_send(datasetpath, "#{Dir.pwd}/_tmp_package/box.zss", datetime, env[:ui], mpc)
Expand Down

0 comments on commit 6e0ca30

Please sign in to comment.