Sha256: 75ad248dd4b3db7d30ab3378d203518afdb8c93de65e5a9b668747d425317a30

Contents?: true

Size: 299 Bytes

Versions: 11

Compression:

Stored size: 299 Bytes

Contents

module Relevance
  module Tarantula

    class LogGrabber
      attr_accessor :path
      def initialize(path)
        @path = path
      end

      def clear!
        File.open(@path, "w")
      end

      def grab!
        File.read(@path)
      ensure
        clear!
      end
    end

  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
codez-tarantula-0.5.5 lib/relevance/tarantula/log_grabber.rb
codez-tarantula-0.5.4 lib/relevance/tarantula/log_grabber.rb
codez-tarantula-0.5.3 lib/relevance/tarantula/log_grabber.rb
codez-tarantula-0.5.1 lib/relevance/tarantula/log_grabber.rb
codez-tarantula-0.5.0 lib/relevance/tarantula/log_grabber.rb
tarantula-0.5.1 lib/relevance/tarantula/log_grabber.rb
tarantula-0.5.0 lib/relevance/tarantula/log_grabber.rb
tarantula-0.4.3 lib/relevance/tarantula/log_grabber.rb
tarantula-0.4.2 lib/relevance/tarantula/log_grabber.rb
tarantula-0.4.1 lib/relevance/tarantula/log_grabber.rb
tarantula-0.4.0 lib/relevance/tarantula/log_grabber.rb