Sha256: fc1cd797cb7dd2015d0239df416b32dbbf325d31c36934e71127405a854c7060

Contents?: true

Size: 360 Bytes

Versions: 33

Compression:

Stored size: 360 Bytes

Contents

def delete_matching_keys_on_bucket(prefix)
  s3_object.buckets[minimal_settings["bucket"]].objects.with_prefix(prefix).each do |obj|
    obj.delete
  end
end

def key_exists_on_bucket?(key)
  s3_object.buckets[minimal_settings["bucket"]].objects[key].exists?
end

def events_in_files(files)
  files.collect { |file| File.foreach(file).count }.inject(&:+)
end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
logstash-output-s3-leprechaun-fork-1.0.15 spec/supports/helpers.rb
logstash-output-s3-leprechaun-fork-1.0.14 spec/supports/helpers.rb
logstash-output-s3-leprechaun-fork-1.0.13 spec/supports/helpers.rb
logstash-output-s3-leprechaun-fork-1.0.12 spec/supports/helpers.rb
logstash-output-s3-leprechaun-fork-1.0.11 spec/supports/helpers.rb
logstash-output-s3-leprechaun-fork-1.0.10 spec/supports/helpers.rb
logstash-output-s3-leprechaun-fork-1.0.9 spec/supports/helpers.rb
logstash-output-s3-leprechaun-fork-1.0.8 spec/supports/helpers.rb
logstash-output-s3-3.2.0 spec/supports/helpers.rb
logstash-output-s3-3.1.2 spec/supports/helpers.rb
logstash-output-s3-3.1.1 spec/supports/helpers.rb
logstash-output-s3-leprechaun-fork-1.0.7 spec/supports/helpers.rb
logstash-output-s3-leprechaun-fork-1.0.6 spec/supports/helpers.rb
logstash-output-s3-leprechaun-fork-1.0.5 spec/supports/helpers.rb
logstash-output-s3-leprechaun-fork-1.0.4 spec/supports/helpers.rb
logstash-output-s3-3.0.1 spec/supports/helpers.rb
logstash-output-s3-3.0.0 spec/supports/helpers.rb
logstash-output-s3-leprechaun-fork-1.0.3 spec/supports/helpers.rb
logstash-output-s3-leprechaun-fork-1.0.2 spec/supports/helpers.rb
logstash-output-s3-2.0.7 spec/supports/helpers.rb