Class: InstallRequirements

Inherits:
Object
  • Object
show all
Defined in:
lib/seqtrimnext/classes/install_requirements.rb

Instance Method Summary collapse

Constructor Details

#initializeInstallRequirements

Returns a new instance of InstallRequirements.



9
10
11
12
13
14
15
# File 'lib/seqtrimnext/classes/install_requirements.rb', line 9

def initialize 
  @external_requirements = {}
  @ruby_requirements = {}  
  load_requirements
  
  
end

Instance Method Details

#check_install_requirementsObject



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/seqtrimnext/classes/install_requirements.rb', line 17

def check_install_requirements   
  res = true
  
  errors = check_system_requirements
  
  if !errors.empty?
  
    $stderr.puts ' Unable to find these external requeriments:'
    errors.each do |error|
      $stderr.puts '   -' + error
      res = false
    end #end each
    
  end #end if

  errors = check_ruby_requirements
  if !errors.empty?
    $stderr.puts ' Unable to find these Ruby requeriments:'
    errors.each do |error|
      $stderr.puts '   -' + error
      res = false
    end #end each
  end #end if
  
    return res
end