Class: VagrantPlugins::Azure::Action::MessageWillNotDestroy
- Inherits:
-
Object
- Object
- VagrantPlugins::Azure::Action::MessageWillNotDestroy
- Defined in:
- lib/vagrant-azure/action/message_will_not_destroy.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ MessageWillNotDestroy
constructor
A new instance of MessageWillNotDestroy.
Constructor Details
#initialize(app, env) ⇒ MessageWillNotDestroy
Returns a new instance of MessageWillNotDestroy.
8 9 10 |
# File 'lib/vagrant-azure/action/message_will_not_destroy.rb', line 8 def initialize(app, env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
12 13 14 15 |
# File 'lib/vagrant-azure/action/message_will_not_destroy.rb', line 12 def call(env) env[:ui].info(I18n.t('vagrant_azure.will_not_destroy', name: env[:machine].name)) @app.call(env) end |