S3x
Found something spicy? Want to check it out in more detail? Here's a tool for ya 😎
Installation
Install the gem and add to Gemfile:
bundle add s3x
Or install it manually:
gem install s3x
Configuration
Initialize a bucket of interest:
bucket = S3x::Bucket.new("http://ftp.ruby-lang.org/")
You can set prefix
to pre-filter items and/or override default page_size
:
bucket = S3x::Bucket.new(
"http://ftp.ruby-lang.org/",
prefix: "pub/ruby/binaries",
page_size: 666
)
Usage
Get first X (page_size
) items:
bucket.items
Get next page items:
bucket.next_items
Check if the next page actually exists:
bucket.next_items?
Get all items in one take:
bucket.all_items
Download selected item using its key
:
bucket.download("pub/misc/ci_versions/cruby-jruby.json")
Development
bin/setup
bin/console
rake spec
rake spec:no_vcr
rake rubocop
rake rubocop:md
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/ocvit/s3x.
License
The gem is available as open source under the terms of the MIT License.