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

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_envsObject



5
6
7
8
# File 'lib/ie.rb', line 5

def self.init_envs
  setup_ie9_env
  setup_ie10_env
end

.setup_ie10_envObject



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_envObject



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