lib/vagrant-notify/action/install_command.rb in vagrant-notify-0.5.2 vs lib/vagrant-notify/action/install_command.rb in vagrant-notify-0.5.3

- old
+ new

@@ -17,11 +17,12 @@ private def compile_command(env, template_file) host_port = env[:notify_data][:port] + client_ip = env[:notify_data][:bind_ip] provider_name = env[:machine].provider_name - template_binding = OpenStruct.new(:host_port => host_port, :shared_folder => '/tmp/vagrant-notify', :provider_name => provider_name, :client_ip => env[:machine].config.notify.bind_ip) + template_binding = OpenStruct.new(:host_port => host_port, :shared_folder => '/tmp/vagrant-notify', :provider_name => provider_name, :client_ip => client_ip) command_template = ERB.new(Vagrant::Notify.files_path.join(template_file).read) command = command_template.result(template_binding.instance_eval { binding }) env[:tmp_path].join('vagrant-notify-send').open('w') { |f| f.write(command) } end