Module: IE
- Defined in:
- lib/ie.rb,
lib/ie/version.rb,
lib/ie/ie_common.rb
Constant Summary collapse
- VERSION =
"0.0.8"
- IE9_VM_NAME =
"IE9 - Win7"
- IE10_VM_NAME =
"IE10 - Win7"
Class Method Summary collapse
- .get_ie_vm_ip(ie_vm_name) ⇒ Object
- .init_envs ⇒ Object
- .setup_ie10_env ⇒ Object
- .setup_ie9_env ⇒ Object
Class Method Details
.get_ie_vm_ip(ie_vm_name) ⇒ Object
6 7 8 |
# File 'lib/ie/ie_common.rb', line 6 def self.get_ie_vm_ip(ie_vm_name) `VBoxManage guestproperty get "#{ie_vm_name}" '/VirtualBox/GuestInfo/Net/0/V4/IP' | awk '{print $NF}'`[0..-2] end |
.init_envs ⇒ Object
5 6 7 8 |
# File 'lib/ie.rb', line 5 def self.init_envs setup_ie9_env setup_ie10_env end |
.setup_ie10_env ⇒ Object
17 18 19 20 21 22 |
# File 'lib/ie.rb', line 17 def self.setup_ie10_env puts "cheching for ie9 vm environment variable" if ENV[IE10_VM_NAME].present? and ( ENV[IE10_VM_NAME].size > 0 ) setup_ie_env(IE10_VM_NAME) end end |
.setup_ie9_env ⇒ Object
10 11 12 13 14 15 |
# File 'lib/ie.rb', line 10 def self.setup_ie9_env puts "cheching for ie9 vm environment variable" if ENV[IE9_VM_NAME].present? and ( ENV[IE9_VM_NAME].size > 0 ) setup_ie_env(IE9_VM_NAME) end end |