Don't setup paths for remote environment

This commit is contained in:
sophia 2021-08-25 13:59:39 -05:00 committed by Paul Hinze
parent 42796be551
commit 9599024fa5
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -76,13 +76,20 @@ module Vagrant
client.target(name)
end
def setup_home_path
# no-op
# Don't setup a home path in ruby
end
def setup_local_data_path(force=false)
# no-op
# Don't setup a home path in ruby
end
# The {MachineIndex} to store information about the machines.
#
# @return [MachineIndex]
def machine_index
# When starting up in server mode, Vagrant will set the environment
# client to the value `:stub`. So, check that we have an actual
# CommandServe::Client::Project by checking for a client
@machine_index ||= Vagrant::MachineIndex.new(client: client.target_index)
end