Class: VagrantPlugins::VagrantNotifier::Notifier
- Inherits:
-
Object
- Object
- VagrantPlugins::VagrantNotifier::Notifier
- Defined in:
- lib/vagrant-notifier/action.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ Notifier
constructor
A new instance of Notifier.
Constructor Details
#initialize(app, env) ⇒ Notifier
Returns a new instance of Notifier.
4 5 6 |
# File 'lib/vagrant-notifier/action.rb', line 4 def initialize(app, env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
8 9 10 11 |
# File 'lib/vagrant-notifier/action.rb', line 8 def call(env) TerminalNotifier.notify("Vagrant run is done \xF0\x9F\x9A\x80", title: 'Vagrant') @app.call(env) end |