Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to compare bucket name to string #72

Merged
merged 1 commit into from
Apr 9, 2020
Merged

Add ability to compare bucket name to string #72

merged 1 commit into from
Apr 9, 2020

Conversation

jrester
Copy link
Contributor

@jrester jrester commented Mar 27, 2020

This allows to easier compare buckets. For example it is now possible to do something like this:

buckets = client.list_buckets
if buckets.includes?("bucket_name") 
     ...
else
     ...
end

or other compare operations without the need to always create a bucket with the name and exact creation date.

	modified:   spec/awscr-s3/bucket_spec.cr
	modified:   src/awscr-s3/bucket.cr
@taylorfinnell taylorfinnell merged commit 48bb79a into taylorfinnell:master Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants