Class: VagrantPlugins::OpenNebulaProvider::Action::MessageInErrorState
- Inherits:
-
Object
- Object
- VagrantPlugins::OpenNebulaProvider::Action::MessageInErrorState
- Defined in:
- lib/opennebula-provider/action/messages.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ MessageInErrorState
constructor
A new instance of MessageInErrorState.
Constructor Details
#initialize(app, env) ⇒ MessageInErrorState
Returns a new instance of MessageInErrorState.
93 94 95 |
# File 'lib/opennebula-provider/action/messages.rb', line 93 def initialize(app, env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
97 98 99 100 |
# File 'lib/opennebula-provider/action/messages.rb', line 97 def call(env) env[:ui].info I18n.t('opennebula_provider.info.error') @app.call(env) end |