Class: AppCommand::SSH

Inherits:
Convoy::ActionCommand::Base
  • Object
show all
Defined in:
lib/routes/ssh.rb

Constant Summary collapse

CONFIGURATION_PREFIX =
'ssh_'

Instance Method Summary collapse

Instance Method Details

#executeObject



7
8
9
10
11
12
13
14
15
# File 'lib/routes/ssh.rb', line 7

def execute

    @opts = command_options
    @args = arguments

    opts_validate
    opts_routing

end

#opts_routingObject



21
22
23
24
25
# File 'lib/routes/ssh.rb', line 21

def opts_routing

    ssh_into_server

end

#opts_validateObject



17
18
19
# File 'lib/routes/ssh.rb', line 17

def opts_validate

end

#ssh_into_serverObject



27
28
29
30
31
# File 'lib/routes/ssh.rb', line 27

def ssh_into_server

    App::SSH::ssh_into_remote(@args[0])

end