Class: MacportsAnalyzer
Instance Attribute Summary
Attributes inherited from DepAnalyzer
#g
Instance Method Summary
collapse
Methods inherited from DepAnalyzer
#decorate, #initialize, #run, #setup
Methods inherited from Cache
#cache, #initialize
Constructor Details
This class inherits a constructor from DepAnalyzer
Instance Method Details
#deps(port) ⇒ Object
16
17
18
19
20
|
# File 'lib/macports_analyzer.rb', line 16
def deps port
cache("#{port}.deps") {
`port deps #{port}`
}.scan(/Dependencies:\s*(.+)$/).join(', ').split(/, /)
end
|
#installed ⇒ Object
4
5
6
7
8
|
# File 'lib/macports_analyzer.rb', line 4
def installed
puts "scanning installed ports"
`port installed`.split(/\n/)[1..-1].map { |s| s.split.first }
end
|
#outdated ⇒ Object
10
11
12
13
14
|
# File 'lib/macports_analyzer.rb', line 10
def outdated
puts "scanning outdated ports"
`port outdated`.split(/\n/)[1..-1].map { |s| s.split.first }
end
|