lib/vagrant-notify/action/install_command.rb in vagrant-notify-0.5.0 vs lib/vagrant-notify/action/install_command.rb in vagrant-notify-0.5.1
- old
+ new
@@ -5,9 +5,11 @@
def initialize(app, env)
@app = app
end
def call(env)
+ return if env[:machine].config.notify.enable == false
+
path = compile_command(env, 'notify-send.erb')
install_command_on_guest(env, path)
@app.call env
end