Sha256: 8f7a61759c4b09b48531a588ce350ca7516c54b37b64c32ca22c913a4c943d7a

Contents?: true

Size: 488 Bytes

Versions: 50

Compression:

Stored size: 488 Bytes

Contents

module Rake
  module TraceOutput

    # Write trace output to output stream +out+.
    #
    # The write is done as a single IO call (to print) to lessen the
    # chance that the trace output is interrupted by other tasks also
    # producing output.
    def trace_on(out, *strings)
      sep = $\ || "\n"
      if strings.empty?
        output = sep
      else
        output = strings.map { |s| s.end_with?(sep) ? s : s + sep }.join
      end
      out.print(output)
    end
  end
end

Version data entries

50 entries across 37 versions & 18 rubygems

Version Path
rubyjobbuilderdsl-0.0.2 vendor/bundle/ruby/2.1.0/gems/rake-0.9.6/lib/rake/trace_output.rb
rubyjobbuilderdsl-0.0.1 vendor/bundle/ruby/2.1.0/gems/rake-0.9.6/lib/rake/trace_output.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rake-10.0.3/lib/rake/trace_output.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rake-10.0.3/lib/rake/trace_output.rb
torquebox-console-0.3.0 vendor/bundle/jruby/1.9/gems/rake-10.0.3/lib/rake/trace_output.rb
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rake-10.0.3/lib/rake/trace_output.rb
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rake-10.0.3/lib/rake/trace_output.rb
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rake-10.0.3/lib/rake/trace_output.rb
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rake-10.0.3/lib/rake/trace_output.rb
font-awesome-rails-3.1.1.2 vendor/ruby/2.0.0/gems/rake-10.0.3/lib/rake/trace_output.rb
font-awesome-rails-3.1.1.2 vendor/ruby/1.9.1/gems/rake-10.0.3/lib/rake/trace_output.rb
font-awesome-rails-3.1.1.1 vendor/ruby/2.0.0/gems/rake-10.0.3/lib/rake/trace_output.rb
font-awesome-rails-3.1.1.1 vendor/ruby/1.9.1/gems/rake-10.0.3/lib/rake/trace_output.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/rake-10.0.3/lib/rake/trace_output.rb
challah-1.0.0.beta vendor/bundle/gems/rake-10.0.3/lib/rake/trace_output.rb
torquebox-console-0.2.5 vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/trace_output.rb
torquebox-console-0.2.5 vendor/bundle/jruby/1.9/gems/rake-10.0.3/lib/rake/trace_output.rb
vagrant-actionio-0.0.9 vendor/bundle/gems/rake-10.0.3/lib/rake/trace_output.rb
torquebox-console-0.2.4 vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/trace_output.rb
torquebox-console-0.2.4 vendor/bundle/jruby/1.9/gems/rake-10.0.3/lib/rake/trace_output.rb