Tweak actions for new runner

This commit is contained in:
Mitchell Hashimoto 2011-12-10 12:52:42 -08:00
parent b4c5b854e2
commit 93e5bc3969
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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)