Sha256: ccac1a5e2670b2b8eb181fe1a04856783f761b94d825e9b8249bf4ee07c8c69b

Contents?: true

Size: 407 Bytes

Versions: 2

Compression:

Stored size: 407 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 Lint/RescueWithoutErrorClass
          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.21.2 lib/rake/funnel/integration/sync_output.rb
rake-funnel-0.21.1 lib/rake/funnel/integration/sync_output.rb