• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aws / aws-sdk-ruby / 1117 / 2
95%
master: 97%

Build:
Build:
LAST BUILD BRANCH: v2.11.632
DEFAULT BRANCH: master
Ran 18 Mar 2015 05:47PM UTC
Files 204
Run time 52s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Mar 2015 05:37PM UTC coverage: 95.475%. First build
1.9.3, NOKOGIRI=1

push

travis-ci

trevorrowe
Add a custom block waiter to all resources.

This is a proof-of-concept attempt to provide the following functionality:

    # polls until the block returns a truthy value, or until the
    # max number of attempts
    resource.wait_until do |resource|
      resource.status == 'destired-state'
    end

A more concrete example:

    # waiting for an object in Amazon S3 to change

    s3 = Aws::S3::Resource.new
    obj = s3.bucket('aws-sdk').object('key')
    old_etag = obj.etag

    obj.wait_until { |obj| obj.etag != old_etag }

Like the other waiters you can throw `:success`, or `:failure` from
the block to stop waiting. Supports configuration options such as:

* :max_attempts - defauts to 10 for all resources
* :delay - defauts to 10 for all resources
* :before_request - optional callback to emit before request
* :before_wait - optional callback to emit before waiting between requests

5043 of 5282 relevant lines covered (95.48%)

171.2 hits per line

Source Files on job 1117.2 (1.9.3, NOKOGIRI=1)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1117
  • Travis Job 1117.2
  • f9e33b4c on github
  • Next Job for 1.9.3, NOKOGIRI=1 on custom-waiter (#1139.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc