Class: VagrantPlugins::OpenNebulaProvider::Action::MessageWillNotDestroy
- Inherits:
-
Object
- Object
- VagrantPlugins::OpenNebulaProvider::Action::MessageWillNotDestroy
- Defined in:
- lib/opennebula-provider/action/messages.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.
60 61 62 |
# File 'lib/opennebula-provider/action/messages.rb', line 60 def initialize(app, env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
64 65 66 67 |
# File 'lib/opennebula-provider/action/messages.rb', line 64 def call(env) env[:ui].info I18n.t('opennebula_provider.info.will_not_destroy') @app.call(env) end |