Class: Kitchen::CLI::Driver
- Inherits:
-
Thor
- Object
- Thor
- Kitchen::CLI::Driver
- Defined in:
- lib/kitchen/cli.rb
Overview
Thor class for kitchen driver commands.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.basename ⇒ Object
247 248 249 |
# File 'lib/kitchen/cli.rb', line 247 def self.basename super + " driver" end |
Instance Method Details
#discover ⇒ Object
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 |