Class: Kitchen::CLI::Driver

Inherits:
Thor
  • Object
show all
Defined in:
lib/kitchen/cli.rb

Overview

Thor class for kitchen driver commands.

Author:

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.basenameObject



247
248
249
# File 'lib/kitchen/cli.rb', line 247

def self.basename
  super + " driver"
end

Instance Method Details

#discoverObject



240
241
242
243
244
245
# File 'lib/kitchen/cli.rb', line 240

def discover
  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