Class: Kitchen::Command::DriverDiscover

Inherits:
Base
  • Object
show all
Defined in:
lib/kitchen/command/driver_discover.rb

Overview

Command to discover drivers published on RubyGems.

Author:

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Logging

#banner, #debug, #error, #fatal, #info, #warn

Constructor Details

This class inherits a constructor from Kitchen::Command::Base

Instance Method Details

#callObject

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