Class: Switchboard::Commands::Disco
- Inherits:
-
Switchboard::Command
- Object
- Switchboard::Command
- Switchboard::Commands::Disco
- Defined in:
- lib/switchboard/commands/disco/info.rb,
lib/switchboard/commands/disco/disco.rb,
lib/switchboard/commands/disco/items.rb
Defined Under Namespace
Class Method Summary collapse
Methods inherited from Switchboard::Command
description, help, run!, to_command, to_command_name
Class Method Details
.options(opts) ⇒ Object
6 7 8 9 10 |
# File 'lib/switchboard/commands/disco/disco.rb', line 6 def self.(opts) super(opts) opts.on("--node=node", String, "Specifies the node to query.") { |v| OPTIONS["disco.node"] = v } opts.on("--target=target", String, "Specifies the target to query.") { |v| OPTIONS["disco.target"] = v } end |