plugins/kernel_v2/config/vm.rb
# Configures a provider for this VM.
#
# @param [Symbol] name The name of the provider.
Configures a provider for this VM.
Configures a provider for this VM .
def provider(name, &block)
        name = name.to_sym
        @__providers[name] ||= []
        @__provider_overrides[name] ||= []
        if block_given?
          @__providers[name] << block if block_given?
          if block.arity == 2
            @__provider_overrides[name] << block.curry[Vagrant::Config::V2::DummyConfig.new]
          end
        end
      end
def provider ( name , & block ) name = name . to_sym @__providers [ name ] ||= [ ] @__provider_overrides [ name ] ||= [ ] if block_given? @__providers [ name ] << block if block_given? if block . arity == 2 @__provider_overrides [ name ] << block . curry [ Vagrant :: Config :: V2 :: DummyConfig . new ] end end end
Configures a provider for this VM.
Configures a provider for this VM .
# If this block takes two arguments, then we curry it and store # the configuration override for use later.
name
<not_specific>
block
<not_specific>
<not_specific>
name The name of the provider.
name The name of the provider .