Class: Switchboard::Commands::Disco

Inherits:
Switchboard::Command show all
Defined in:
lib/switchboard/commands/disco/info.rb,
lib/switchboard/commands/disco/disco.rb,
lib/switchboard/commands/disco/items.rb

Defined Under Namespace

Classes: Info, Items

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.options(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