Sha256: c4dff527e382ff8b162bfa91830594388565f3a3741a7dd1e17aa282799f8a84

Contents?: true

Size: 408 Bytes

Versions: 65

Compression:

Stored size: 408 Bytes

Contents

require 'vagrant'

module PEBuild
  module ConfigDefault

    # @param [Symbol] iv The instance variable to set the default value
    # @param [Object] default The default value
    def set_default(iv, default)
      iv_val = instance_variable_get(iv)
      if iv_val == Vagrant::Plugin::V2::Config::UNSET_VALUE
        instance_variable_set(iv, default)
      end
    end
    private :set_default
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
vagrant-pe_build-0.8.2 lib/pe_build/config_default.rb
vagrant-pe_build-0.8.1 lib/pe_build/config_default.rb
vagrant-pe_build-0.8.0 lib/pe_build/config_default.rb
vagrant-pe_build-0.7.1 lib/pe_build/config_default.rb
vagrant-pe_build-0.7.0 lib/pe_build/config_default.rb