Sha256: 17077c5dcabe3403d8059a8ef1cddbecea1dd9c5f173cc4545f65b1cdb390b0c

Contents?: true

Size: 850 Bytes

Versions: 16

Compression:

Stored size: 850 Bytes

Contents

module Sprinkle
  module Installers
    # 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
    class Reconnect < Installer
      
      api do
        def reconnect(options={}, &block)
          install Sprinkle::Installers::Reconnect.new(self, options, &block)
        end
      end

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

    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sprinkle-0.7.5 lib/sprinkle/installers/reconnect.rb
sprinkle-0.7.4 lib/sprinkle/installers/reconnect.rb
sprinkle-0.7.3 lib/sprinkle/installers/reconnect.rb
sprinkle-0.7.2 lib/sprinkle/installers/reconnect.rb
sprinkle-0.7.1.1 lib/sprinkle/installers/reconnect.rb
sprinkle-0.7.1 lib/sprinkle/installers/reconnect.rb
sprinkle-0.7 lib/sprinkle/installers/reconnect.rb
sprinkle-0.6.2 lib/sprinkle/installers/reconnect.rb
sprinkle-0.6.1.1 lib/sprinkle/installers/reconnect.rb
sprinkle-0.6.1 lib/sprinkle/installers/reconnect.rb
sprinkle-0.6.0 lib/sprinkle/installers/reconnect.rb
sprinkle-0.5.2 lib/sprinkle/installers/reconnect.rb
sprinkle-0.5.1.1 lib/sprinkle/installers/reconnect.rb
sprinkle-0.5.1 lib/sprinkle/installers/reconnect.rb
sprinkle-0.5.0 lib/sprinkle/installers/reconnect.rb
sprinkle-0.5.0.rc1 lib/sprinkle/installers/reconnect.rb