Sha256: 4de949fe04ae3f833e57be5d86e1bc3fd1070b733080742d906436081445c316

Contents?: true

Size: 414 Bytes

Versions: 5

Compression:

Stored size: 414 Bytes

Contents

Vagrant.require_plugin('nugrant')

Vagrant.configure("2") do |config|
  config.user.defaults = {
    :single => 1,
    :local => {
        :first => "value1",
        :second => "value2"
    }
  }

  puts config.user.single
  puts config.user[:single]

  puts config.user.local.first
  puts config.user[:local]["first"]

  puts config.user.local.second
  puts config.user["local"][:second]
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nugrant-1.4.2 test/resources/vagrantfiles/v2.defaults_using_symbol
nugrant-1.4.1 test/resources/vagrantfiles/v2.defaults_using_symbol
nugrant-1.4.0 test/resources/vagrantfiles/v2.defaults_using_symbol
nugrant-1.3.0 test/resources/vagrantfiles/v2.defaults_using_symbol
nugrant-1.2.0 test/resources/vagrantfiles/v2.defaults_using_symbol