Sha256: 679281122b5d6cb962404bc6bc0d74a70b0a455592dc3cf66d685c0b01c1f5f6

Contents?: true

Size: 767 Bytes

Versions: 4

Compression:

Stored size: 767 Bytes

Contents

# Source from https://github.com/maoueh/nugrant/issues/12#issuecomment-27054150
# but slightly modified
Vagrant.require_plugin('nugrant')

Vagrant.configure('2') do |config|
   config.user.defaults = {
     "host" => {
       "rails_server_port" => 3000,
       "apps_folder" => "../../rails-apps/" },
     "plugins" => {
       "vagrant_cachier" => {
         "enabled" => false
       }
     }
   }

  puts "Host Rails Server Port: #{config.user.host.rails_server_port}"
  puts "Host App Folder: #{config.user.host.apps_folder}"
  puts "Gitconfig Name: #{config.user.gitconfig.name}"
  puts "Gitconfig Email: #{config.user.gitconfig.email}"

  if config.user.plugins.vagrant_cachier.enabled
    puts "Vagrant Cachier is Enabled!"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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