Class: Kontena::Plugin::Shell::SubCommand
- Defined in:
- lib/kontena/plugin/shell/command.rb
Overview
SubCommand is just like a command, except it doesn’t register the class to Shell.commands.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Command
Class Method Summary collapse
Methods inherited from Command
completions, description, has_subcommands?, #has_subcommands?, help, #initialize, #run, subcommands
Constructor Details
This class inherits a constructor from Kontena::Plugin::Shell::Command
Class Method Details
.command(name = nil) ⇒ Object
77 78 79 |
# File 'lib/kontena/plugin/shell/command.rb', line 77 def self.command(name = nil) @command ||= name end |