Sha256: 766c3be1337defb0828640dc0f8fc883d105028c769be6407ff3b4a69f0a47a7
Contents?: true
Size: 918 Bytes
Versions: 1
Compression:
Stored size: 918 Bytes
Contents
# Jeff Jeff mixes in client behaviour for Amazon Web Services (AWS) which require [Signature version 2 authentication][sig]. Monsieur Jeff couples with [Excon][exc]. ![jeff][jef] ## Usage A somewhat contrived example: ```ruby Service = Struct.new(:aws_access_key_id, :aws_secret_access_key) do include Jeff def aws_endpoint 'https://mws.amazonservices.com/Products/2011-10-01' end def status get(query: { 'Action' => 'GetServiceStatus' }) .body .match(/Status>([^<]+)/) .[](1) end end srv = Service.new('key', 'secret') srv.status # => "GREEN" ``` [Vacuum][vac] and [Peddler][ped] implement Jeff. [sig]: http://docs.amazonwebservices.com/general/latest/gr/signature-version-2.html [exc]: https://github.com/geemus/excon [jef]: http://f.cl.ly/items/0a3R3J0k1R2f423k1q2l/jeff.jpg [vac]: https://github.com/hakanensari/vacuum [ped]: https://github.com/papercavalier/peddler
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jeff-0.7.4 | README.md |