Class: Ukiryu::CliCommands::SystemCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Ukiryu::CliCommands::SystemCommand
- Defined in:
- lib/ukiryu/cli_commands/system_command.rb
Overview
Command to list system information
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
-
#run(subcommand = nil) ⇒ Object
Run the system command.
Methods inherited from BaseCommand
#apply_cli_options_to_config, #default_register_path, #initialize, #setup_register, #stringify_keys
Constructor Details
This class inherits a constructor from Ukiryu::CliCommands::BaseCommand
Instance Method Details
#run(subcommand = nil) ⇒ Object
Run the system command
10 11 12 13 14 15 16 17 |
# File 'lib/ukiryu/cli_commands/system_command.rb', line 10 def run(subcommand = nil) case subcommand when 'shells', nil list_shells else error!("Unknown subcommand: #{subcommand}. Valid subcommands: shells") end end |