Class: VagrantPlugins::Cienv::Command::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-qienv/command/base.rb

Direct Known Subclasses

InitEnvironment

Instance Method Summary collapse

Instance Method Details

#action(callable, env = nil) ⇒ Object

This is a helper for executing an action sequence with the proper environment hash setup so that the plugin specific helpers are in.

Parameters:

  • callable (Object)

    the Middleware callable

  • env (Hash) (defaults to: nil)

    Extra environment hash that is merged in.



13
14
15
# File 'lib/vagrant-qienv/command/base.rb', line 13

def action(callable, env=nil)
  @env.action_runner.run(callable, env)
end