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-2.0.4 spec/supports/helpers.rb
logstash-output-s3-1.0.2 spec/supports/helpers.rb
logstash-output-s3-1.0.1 spec/supports/helpers.rb
logstash-output-s3-2.0.3 spec/supports/helpers.rb
logstash-output-s3-2.0.2 spec/supports/helpers.rb
logstash-output-s3-2.0.1 spec/supports/helpers.rb
logstash-output-s3-2.0.0 spec/supports/helpers.rb
logstash-output-s3-1.0.0 spec/supports/helpers.rb
logstash-output-s3-0.1.7 spec/supports/helpers.rb
logstash-output-s3-0.1.6 spec/supports/helpers.rb
logstash-output-s3-0.1.5 spec/supports/helpers.rb
logstash-output-s3-0.1.4 spec/supports/helpers.rb
logstash-output-s3-0.1.2 spec/supports/helpers.rb