Sha256: c6385a219fba4f0b5ffce28f15b8f9a2279bf2aacccbfe690ab0368cae86fae4

Contents?: true

Size: 382 Bytes

Versions: 2

Compression:

Stored size: 382 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
          $stderr.print "Failed to set up sync output #{e}\n"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rake-funnel-0.24.0 lib/rake/funnel/integration/sync_output.rb
rake-funnel-0.23.0 lib/rake/funnel/integration/sync_output.rb