Class: SafeUpdate::BundleOutdatedParser
- Inherits:
-
Object
- Object
- SafeUpdate::BundleOutdatedParser
- Defined in:
- lib/safe_update/bundle_outdated_parser.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/safe_update/bundle_outdated_parser.rb', line 5 def call @outdated_gems = [] # Yes, I know about `bundle outdated --parseable` but old versions # don't support it and it's really not THAT much more parseable anyway # and parseable still sometimes has lines that aren't relevant @output = `bundle outdated` @output.split(/\n+/).each do |line| process_single_line(line) end return @outdated_gems end |