Module: SeleniumPrep

Defined in:
lib/selenium-prep.rb,
lib/selenium-prep/urls.rb,
lib/selenium-prep/version.rb,
lib/selenium-prep/system/os.rb,
lib/selenium-prep/downloader.rb,
lib/selenium-prep/system/path.rb,
lib/selenium-prep/system/folder.rb,
lib/selenium-prep/config-checker.rb,
lib/selenium-prep/system/extract.rb

Defined Under Namespace

Modules: Downloader, System, URLs Classes: ConfigChecker

Constant Summary collapse

VERSION =
'0.2.2'

Class Method Summary collapse

Class Method Details

.downloadObject



16
17
18
19
20
21
22
23
24
# File 'lib/selenium-prep.rb', line 16

def self.download
  System::OS.set_type
  ConfigChecker.new
  System::Folder.create_directory
  System::Folder.prompt_user if System::Folder.downloads_exist?
  Downloader.download
  System::Extract.extract_zip_files
  System::Extract.delete_zip_files
end

.path_set?Boolean

Returns:

  • (Boolean)


26
27
28
29
30
31
32
33
34
35
# File 'lib/selenium-prep.rb', line 26

def self.path_set?
  System::OS.set_type
  ConfigChecker.new
  result = System::Path.set?
  result ?
    (puts "Selenium is ready to use!") :
    (puts "Your PATH is not configured correctly. \n\nHere is what it's set to now:\n")
  puts System::Path.path
  result
end

.prepObject



9
10
11
12
13
14
# File 'lib/selenium-prep.rb', line 9

def self.prep
  System::OS.set_type
  download
  System::Path.set
  path_set?
end