Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created March 5, 2016 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/43748cfc0a8642295d32 to your computer and use it in GitHub Desktop.
Save anonymous/43748cfc0a8642295d32 to your computer and use it in GitHub Desktop.
ENV['HYPERV_NETWORK_MODULE'] = "Import-Module ..\\..\\HighStage.HyperV.Vagrant\\HighStage.HyperV.Vagrant\\HighStage.HyperV.Vagrant.psd1 ;"
output_execution = `powershell.exe -Command \"#{ENV['HYPERV_NETWORK_MODULE']} Install-VMConfiguration -configJsonPath hyperv-config.json -vmName #{env[:machine].provider_config.vmname}\"`
run 'powershell.exe -Command "#{ENV['HYPERV_NETWORK_MODULE']} Install-VMNetworks -configJsonPath hyperv-config.json ; Export-HostIPsToFacterJson -configJsonPath hyperv-config.json -outFile ..\shared\resources\host_ip_facts.json"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment