Sha256: 02bd2e7bc5d1d7b99d7040917b25af5f5b942521de18b4e24f74153611e3acd9

Contents?: true

Size: 309 Bytes

Versions: 9

Compression:

Stored size: 309 Bytes

Contents

module Capistrano
  class Configuration
    module Connections
      def failed!(server)
        @failure_callback.call(server) if @failure_callback
        Thread.current[:failed_sessions] << server
      end

      def call_on_failure(&block)
        @failure_callback = block
      end
    end
  end
end


Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
leap_cli-1.8.1 lib/leap_cli/lib_ext/capistrano_connections.rb
leap_cli-1.8 lib/leap_cli/lib_ext/capistrano_connections.rb
leap_cli-1.7.4 lib/leap_cli/lib_ext/capistrano_connections.rb
leap_cli-1.7.3 lib/leap_cli/lib_ext/capistrano_connections.rb
leap_cli-1.6.2 lib/leap_cli/lib_ext/capistrano_connections.rb
leap_cli-1.5.6 lib/lib_ext/capistrano_connections.rb
leap_cli-1.5.1 lib/lib_ext/capistrano_connections.rb
leap_cli-1.5.0 lib/lib_ext/capistrano_connections.rb
leap_cli-1.2.5 lib/lib_ext/capistrano_connections.rb