Class: UnimatrixCLI::Citadel::Instance::SshCommand
- Inherits:
-
CitadelCommand
- Object
- UnimatrixCLI::Command
- CitadelCommand
- UnimatrixCLI::Citadel::Instance::SshCommand
- Defined in:
- lib/unimatrix_cli/citadel/instance/ssh_command.rb
Constant Summary
Constants inherited from CitadelCommand
CitadelCommand::APIS, CitadelCommand::PRIVATE_SUBNETS, CitadelCommand::ROOT
Instance Method Summary collapse
- #execute ⇒ Object
-
#execute_shell ⇒ Object
—————————————————————————-.
Methods inherited from CitadelCommand
#account, #aws_client, #instance_details, #instance_list, #instances_by_zone, #key, #load_environment, #user, #write_instance_details
Methods inherited from UnimatrixCLI::Command
available_commands, descendants, #initialize, #read_file, #validate, #validate_collection, #write
Methods included from UnimatrixParser
Constructor Details
This class inherits a constructor from UnimatrixCLI::Command
Instance Method Details
#execute ⇒ Object
12 13 14 15 |
# File 'lib/unimatrix_cli/citadel/instance/ssh_command.rb', line 12 def execute super execute_shell end |
#execute_shell ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/unimatrix_cli/citadel/instance/ssh_command.rb', line 19 def execute_shell command = base_command if @options[ :commands ] command += " #{ @options[ :commands ] }" end exec command end |