Guest User

Untitled

a guest
Jan 14th, 2016
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.54 KB | None | 0 0
  1. # -*- mode: ruby -*-
  2.  
  3. dir = File.dirname(File.expand_path(__FILE__))
  4.  
  5. require 'yaml'
  6. require "#{dir}/puphpet/ruby/deep_merge.rb"
  7. require "#{dir}/puphpet/ruby/puppet.rb"
  8.  
  9. configValues = YAML.load_file("#{dir}/puphpet/config.yaml")
  10.  
  11. if File.file?("#{dir}/puphpet/config-custom.yaml")
  12.   custom = YAML.load_file("#{dir}/puphpet/config-custom.yaml")
  13.   configValues.deep_merge!(custom)
  14. end
  15.  
  16. data = configValues['vagrantfile']
  17.  
  18. Vagrant.require_version '>= 1.6.0'
  19.  
  20. eval File.read("#{dir}/puphpet/vagrant/Vagrantfile-#{data['target']}")
Add Comment
Please, Sign In to add comment