Class: Taketo::Actions::Login

Inherits:
BaseAction show all
Defined in:
lib/taketo/actions/login.rb

Instance Attribute Summary

Attributes inherited from BaseAction

#destination_path, #options

Instance Method Summary collapse

Methods inherited from BaseAction

#config, #initialize

Constructor Details

This class inherits a constructor from Taketo::Actions::BaseAction

Instance Method Details

#runObject



9
10
11
12
13
14
# File 'lib/taketo/actions/login.rb', line 9

def run
  server = ServerResolver.new(config, destination_path).resolve
  server_command = remote_command(server)
  command_to_execute = Commands[server.ssh_command].new(server).render(server_command.render(server, options))
  execute(command_to_execute)
end