Sha256: 20df8db28450a6fe4edb65145a099be589c1934d84263eaf33b9e594498f5e06

Contents?: true

Size: 426 Bytes

Versions: 1

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

module Rake
  module Funnel
    module Integration
      class SyncOutput
        def initialize
          sync($stdout)
          sync($stderr)
        end

        private

        def sync(stream)
          stream.sync = true
        rescue => e # rubocop:disable Style/RescueStandardError
          $stderr.print "Failed to set up sync output #{e}\n"
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rake-funnel-0.22.3 lib/rake/funnel/integration/sync_output.rb