Class: Hotdog::Commands::Ssh
- Inherits:
-
SingularSshAlike
- Object
- BaseCommand
- Search
- SshAlike
- SingularSshAlike
- Hotdog::Commands::Ssh
- Defined in:
- lib/hotdog/commands/ssh.rb
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
234 235 236 237 238 239 240 241 242 |
# File 'lib/hotdog/commands/ssh.rb', line 234 def (optparse, ={}) super optparse.on("-D BIND_ADDRESS", "Specifies a local \"dynamic\" application-level port forwarding") do |bind_address| [:dynamic_port_forward] = bind_address end optparse.on("-L BIND_ADDRESS", "Specifies that the given port on the local (client) host is to be forwarded to the given host and port on the remote side") do |bind_address| [:port_forward] = bind_address end end |