Class: Sprinkle::Installers::Reconnect

Inherits:
Installer show all
Defined in:
lib/sprinkle/installers/reconnect.rb

Overview

Disconnects and reconnects the remote SSH session, you might want to do this after pushing a file that would affect the local shell environment

Example Usage

package :download_with_proxy do
  push_text proxy_config, "/etc/environment", :sudo => true
  reconnect
  source "http://someurlthatneedstheproxy.com/installer.tar.gz"
end

Instance Attribute Summary

Attributes inherited from Installer

#delivery, #options, #package, #post, #pre

Instance Method Summary collapse

Methods inherited from Installer

#announce, api, #commands_from_block, #defer, #escape_shell_arg, inherited, #initialize, #install_sequence, #method_missing, #per_host?, #post_process, #process, subclasses, verify_api

Methods included from Sudo

#sudo?, #sudo_cmd, #sudo_stack

Methods included from Attributes

#defaults, #set_defaults

Constructor Details

This class inherits a constructor from Sprinkle::Installers::Installer

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Sprinkle::Installers::Installer

Instance Method Details

#install_commandsObject

:RECONNECT is a symbol that the actors understand to mean to drop and reestablish any SSH conncetions they have open


23
24
25
# File 'lib/sprinkle/installers/reconnect.rb', line 23

def install_commands #:nodoc:
  Commands::Reconnect.new()
end