Class: Kitchen::Command::DriverDiscover
- Defined in:
- lib/kitchen/command/driver_discover.rb
Overview
Command to discover drivers published on RubyGems.
Instance Method Summary collapse
-
#call ⇒ Object
Invoke the command.
Methods inherited from Base
Methods included from Logging
#banner, #debug, #error, #fatal, #info, #warn
Constructor Details
This class inherits a constructor from Kitchen::Command::Base
Instance Method Details
#call ⇒ Object
Invoke the command.
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 |