Sha256: 27a2e0bbf4b3c3eb4ad2a96ee1bf719fb6f4d9c1e0380dd228d9f9378cfca26c

Contents?: true

Size: 271 Bytes

Versions: 5

Compression:

Stored size: 271 Bytes

Contents

# frozen_string_literal: true

module Capistrano
  module Ops
    module Logs
      module Helpers
        def trap_interrupt
          trap('INT') do
            print "\rDisconnecting... Done.\n"
            exit 0
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
capistrano-ops-1.0.4 lib/capistrano/ops/logs/helpers.rb
capistrano-ops-1.0.3 lib/capistrano/ops/logs/helpers.rb
capistrano-ops-1.0.2 lib/capistrano/ops/logs/helpers.rb
capistrano-ops-1.0.1 lib/capistrano/ops/logs/helpers.rb
capistrano-ops-1.0.0 lib/capistrano/ops/logs/helpers.rb