Class: Hotdog::Commands::Pssh
- Inherits:
-
SshAlike
- Object
- BaseCommand
- Search
- SshAlike
- Hotdog::Commands::Pssh
- Defined in:
- lib/hotdog/commands/pssh.rb
Defined Under Namespace
Classes: StopException
Constant Summary
Constants inherited from BaseCommand
BaseCommand::MASK_DATABASE, BaseCommand::MASK_QUERY, BaseCommand::PERSISTENT_DB
Instance Attribute Summary
Attributes inherited from Search
Attributes inherited from BaseCommand
#application, #logger, #options
Instance Method Summary collapse
Methods inherited from SshAlike
Methods inherited from Search
#evaluate, #get_hosts_with_search_tags, #parse, #parse_options, #run
Methods inherited from BaseCommand
#execute, #fixed_string?, #initialize, #parse_options, #reload, #run
Constructor Details
This class inherits a constructor from Hotdog::Commands::BaseCommand
Instance Method Details
#define_options(optparse, options = {}) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/hotdog/commands/pssh.rb', line 13 def (optparse, ={}) super default_option(, :show_identifier, true) optparse.on("--[no-]identifier", "Each output line will be prepended with identifier.") do |identifier| [:show_identifier] = identifier end optparse.on("--stop-on-error", "Stop execution when a remote command fails (valid only if -P is set)") do |v| [:stop_on_error] = v end end |