Sha256: 6d39e802c5d6c18f5bd27d565b322916abb9e353a4853bcfff27d90593d720b8
Contents?: true
Size: 732 Bytes
Versions: 19
Compression:
Stored size: 732 Bytes
Contents
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 = { :gem_helper => GemHelper.new(@env.gems_path), :plugin_state_file => StateFile.new(@env.home_path.join("plugins.json")) }.merge(env || {}) @env.action_runner.run(callable, env) end end end end end
Version data entries
19 entries across 19 versions & 6 rubygems