lib/dpl/provider/elastic_beanstalk.rb in dpl-1.8.33.travis.2043.5 vs lib/dpl/provider/elastic_beanstalk.rb in dpl-1.8.33.travis.2048.5
- old
+ new
@@ -97,14 +97,14 @@
def eb
@eb ||= Aws::ElasticBeanstalk::Client.new
end
def bucket_exists?
- s3.buckets.map(&:name).include? bucket_name
+ s3.bucket(bucket_name).exists?
end
def create_bucket
- s3.buckets.create(bucket_name)
+ s3.bucket(bucket_name).create
end
def files_to_pack
`git ls-files -z`.split("\x0")
end