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

Version Path
tamtam-vagrant-reload-1.1.3 vendor/cache/vagrant-0ac2a8738841/plugins/commands/plugin/command/base.rb
tamtam-vagrant-reload-1.1.2 vendor/cache/vagrant-0ac2a8738841/plugins/commands/plugin/command/base.rb
tamtam-vagrant-reload-1.1.1 vendor/cache/vagrant-0ac2a8738841/plugins/commands/plugin/command/base.rb
tamtam-vagrant-reload-1.1 vendor/cache/vagrant-0ac2a8738841/plugins/commands/plugin/command/base.rb
tnargav-1.3.6 plugins/commands/plugin/command/base.rb
tnargav-1.3.3 plugins/commands/plugin/command/base.rb
vagrant-shell-0.2.9 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/plugins/commands/plugin/command/base.rb
tnargav-1.2.3 plugins/commands/plugin/command/base.rb
vagrant-shell-0.2.8 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/plugins/commands/plugin/command/base.rb
vagrant-shell-0.2.6 vendor/bundle/gems/tnargav-1.2.2/plugins/commands/plugin/command/base.rb
vagrant-shell-0.2.5 vendor/bundle/gems/tnargav-1.2.2/plugins/commands/plugin/command/base.rb
tnargav-1.2.2 plugins/commands/plugin/command/base.rb
vagrantup-1.1.3 plugins/commands/plugin/command/base.rb
vagrantup-1.1.2 plugins/commands/plugin/command/base.rb
vagrantup-1.1.1 plugins/commands/plugin/command/base.rb
vagrantup-1.1.0 plugins/commands/plugin/command/base.rb
vagrantup-1.1.4 plugins/commands/plugin/command/base.rb
vagrant-actionio-0.0.9 vendor/bundle/bundler/gems/vagrant-c74251a1d9c0/plugins/commands/plugin/command/base.rb
vagrant-lxc-0.0.1 vendor/vagrant/plugins/commands/plugin/command/base.rb