1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
require "vagrant/plugin/state_file"
module VagrantPlugins
module CommandPlugin
module Command
class Base < Vagrant.plugin("2", :command)
# This is a helper for executing an action sequence with the proper
# environment hash setup so that the plugin specific helpers are
# in.
#
# @param [Object] callable the Middleware callable
# @param [Hash] env Extra environment hash that is merged in.
def action(callable, env=nil)
@env.action_runner.run(callable, env)
end
end
end
end
end
|