Sha256: b052b319542b57b302500f68435881c8bfcc2e34905a8b2e61923d9951a6bb1d

Contents?: true

Size: 418 Bytes

Versions: 5

Compression:

Stored size: 418 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_string
nugrant-1.4.1 test/resources/vagrantfiles/v2.defaults_using_string
nugrant-1.4.0 test/resources/vagrantfiles/v2.defaults_using_string
nugrant-1.3.0 test/resources/vagrantfiles/v2.defaults_using_string
nugrant-1.2.0 test/resources/vagrantfiles/v2.defaults_using_string