Sha256: e828ebf2d0f34c9a7dec613daf98aad1a416738544cc3cd9b4261e82bd1687c5

Contents?: true

Size: 404 Bytes

Versions: 2

Compression:

Stored size: 404 Bytes

Contents

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
          Rake.rake_output_message "Failed to set up sync output #{e}"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rake-funnel-0.22.1 lib/rake/funnel/integration/sync_output.rb
rake-funnel-0.22.0 lib/rake/funnel/integration/sync_output.rb