Tweak actions for new runner
This commit is contained in:
parent
b4c5b854e2
commit
93e5bc3969
|
@ -9,10 +9,10 @@ module Vagrant
|
||||||
def call(env)
|
def call(env)
|
||||||
@app.call(env)
|
@app.call(env)
|
||||||
|
|
||||||
host_name = env["config"].vm.host_name
|
host_name = env[:vm].config.vm.host_name
|
||||||
if !host_name.nil?
|
if !host_name.nil?
|
||||||
env.ui.info I18n.t("vagrant.actions.vm.host_name.setting")
|
env[:ui].info I18n.t("vagrant.actions.vm.host_name.setting")
|
||||||
env["vm"].system.change_host_name(host_name)
|
env[:vm].system.change_host_name(host_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -70,8 +70,8 @@ module Vagrant
|
||||||
:guest_path => data[:guestpath]))
|
:guest_path => data[:guestpath]))
|
||||||
|
|
||||||
# Calculate the owner and group
|
# Calculate the owner and group
|
||||||
owner = data[:owner] || @env["config"].ssh.username
|
owner = data[:owner] || @env[:vm].config.ssh.username
|
||||||
group = data[:group] || @env["config"].ssh.username
|
group = data[:group] || @env[:vm].config.ssh.username
|
||||||
|
|
||||||
# Mount the actual folder
|
# Mount the actual folder
|
||||||
@env[:vm].system.mount_shared_folder(ssh, name, data[:guestpath], owner, group)
|
@env[:vm].system.mount_shared_folder(ssh, name, data[:guestpath], owner, group)
|
||||||
|
|
Loading…
Reference in New Issue