Class: Kitchen::Command::DriverDiscover
- Defined in:
- lib/kitchen/command/driver_discover.rb
Overview
Command to discover drivers published on RubyGems.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Kitchen::Command::Base
Instance Method Details
#call ⇒ Object
33 34 35 36 37 38 |
# File 'lib/kitchen/command/driver_discover.rb', line 33 def call specs = fetch_gem_specs.sort { |x, y| x[0] <=> y[0] } specs = specs[0, 49].push(["...", "..."]) if specs.size > 49 specs = specs.unshift(["Gem Name", "Latest Stable Release"]) print_table(specs, :indent => 4) end |