Module: Windows

Included in:
Config
Defined in:
lib/pretest/config/windows.rb

Instance Method Summary collapse

Instance Method Details

#set_windows_envObject



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/pretest/config/windows.rb', line 4

def set_windows_env
  Dir.mkdir('C:\\env_folder') unless Dir.entries('C:\\').include?('env_folder')
  Dir.chdir('C:\\env_folder')
  @ruby = get_ruby_path
  puts "We're going to move the webdrivers to '#{@ruby}'"
  puts 'Downloading webdrivers to C:\\env_folder'
  windows_download
  puts 'Unziping webdrivers files'
  unzip_windows_files
  puts 'Checking Ruby Development Kit...'
  dk_check_and_install
  move_webdrivers
end