Sha256: bf5dd90cf13f392885dc003009d74754ac8dcf17c59f3f6ccaa580151e98b7f1

Contents?: true

Size: 221 Bytes

Versions: 33

Compression:

Stored size: 221 Bytes

Contents

class Relevance::Tarantula::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

Version data entries

33 entries across 33 versions & 5 rubygems

Version Path
relevance-tarantula-0.0.1 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.0.2 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.0.3 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.0.5 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.0.6 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.0.7.1 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.0.7 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.0.8.0 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.0.8.1 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.1.0 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.1.1 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.1.2 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.1.3 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.1.4 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.1.5 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.1.6 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.1.7 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.1.8 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.2.0 lib/relevance/tarantula/log_grabber.rb
relevance-tarantula-0.2.1 lib/relevance/tarantula/log_grabber.rb