This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/airblade/paper_trail/issues/594 | |
# Use this template to report PaperTrail bugs. | |
# It is based on the ActiveRecord template. | |
# https://github.com/rails/rails/blob/master/guides/bug_report_templates/active_record_gem.rb | |
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vm_infos = `vboxmanage list vms` | |
puts 'Port Forwardings:' | |
puts '---------------------------------' | |
vm_infos.each_line do |vm_info| | |
vm_name = vm_info.scan(/\"(.*)\"/) | |
vm_id = vm_info.scan(/.*{(.*)}/).join('') | |
vm_detail_info = `vboxmanage showvminfo #{vm_id}` |