Class: Prebundler::Cli::List

Inherits:
Base
  • Object
show all
Defined in:
lib/prebundler/cli/list.rb

Instance Attribute Summary

Attributes inherited from Base

#args, #global_options, #options, #out

Instance Method Summary collapse

Methods inherited from Base

#initialize, run

Constructor Details

This class inherits a constructor from Prebundler::Cli::Base

Instance Method Details

#runObject



4
5
6
7
8
9
# File 'lib/prebundler/cli/list.rb', line 4

def run
  gem_list.each do |_, gem_ref|
    next unless show_gem?(gem_ref)
    out.puts "#{gem_ref.id} from #{gem_ref.source}"
  end
end