Method: Miko::Applications#checkScripts

Defined in:
lib/miko/applications.rb

#checkScripts(path) ⇒ Object

Loops trough the defined @applist checking if the provided path wouldn’t match once of defined regex definitions



98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# File 'lib/miko/applications.rb', line 98

def checkScripts( path )
  if @option[:script].empty? 
    @applist.each do |sc, val|
      if !val.match(path).nil?
        f =  final_find(sc, path)
        @found << f if !f.nil?
      end
    end
  else
    @option[:script].each do |sc|
      if !@applist[sc].match(path).nil?
        f = final_find(sc, path)
        @found << f if !f.nil?
      end
    end
  end



end