Class: Package::Audit::Technology::Detector

Inherits:
Object
  • Object
show all
Defined in:
lib/package/audit/technology/detector.rb

Instance Method Summary collapse

Constructor Details

#initialize(dir) ⇒ Detector

Returns a new instance of Detector.



12
13
14
# File 'lib/package/audit/technology/detector.rb', line 12

def initialize(dir)
  @dir = dir
end

Instance Method Details

#detectObject



16
17
18
19
20
21
# File 'lib/package/audit/technology/detector.rb', line 16

def detect
  technologies = []
  technologies << Enum::Technology::RUBY if ruby?
  technologies << Enum::Technology::NODE if node?
  technologies.sort
end