Skip to content

Instantly share code, notes, and snippets.

@jbrown
Created October 18, 2011 16:06
Show Gist options
  • Save jbrown/1295829 to your computer and use it in GitHub Desktop.
Save jbrown/1295829 to your computer and use it in GitHub Desktop.
require 'fileutils'
require 'vagrant'
# require 'nokogiri'
FileUtils.mkdir_p 'tmp'
env = Vagrant::Environment.new(:cwd => File.expand_path('tmp'))
Dir.chdir 'tmp' do
env.cli 'init', 'CentOS-5.7-build'
end
env.cli 'up'
require 'nokogiri'
puts File.read(File.expand_path("../definitions/orion57-base/comps.xml", __FILE__))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment