Giter Club home page Giter Club logo

rufus-sqs's Introduction

= rufus-sqs


== getting it

    sudo gem install -y rufus-sqs

or at

http://rubyforge.org/frs/?group_id=4812


== usage

At first, 'rufus-sqs' expects to find the Amazon WebServices keys in four environment variables : AMAZON_KEY_ID, AMAZON_ACCESS_KEY_ID, AMAZON_ACCESS_KEY and AMAZON_SECRET_ACCESS_KEY

(Like the gem "aws-s3" http://amazon.rubyforge.org/ does).


For example, I store them in a file named .amazon that gets loaded when necessary :

    export AMAZON_KEY_ID=171A375Y3DY838652G2
    export AMAZON_ACCESS_KEY_ID=17r37R45YZDY252G2
    
    export AMAZON_ACCESS_KEY=iOML8QLPy5DB5sCUoS0LbJcA2/OChUUNky
    export AMAZON_SECRET_ACCESS_KEY=ibMU8QfPDB5sCUgS0NLbScA2/OChUHNy


Some example code :

    qs = Rufus::SQS::QueueService.new
    
    qs.create_queue "mytestqueue"
    
    msg = "hello SQS world !"
    
    msg_id = qs.put_message "mytestqueue", msg

    put msg_id
        # will print something like 
        # 0MQFS772Z73BG5R9QD6V|A717CAQHX0CS7N69WY71|M57DGQ7TB7T3MFY3J1X0
    
    sleep 1
    
    msgs = qs.get_messages "mytestqueue"
    
    puts msgs[0].message_body
        # => 'hello SQS world !"
    
    qs.delete_queue "mytestqueue"

more at Rufus::SQS::QueueService


= dependencies

The gem 'rufus-verbs' (http://rufus.rubyforge.org/rufus-verbs) and its dependencies.


== mailing list

On the rufus-ruby list[http://groups.google.com/group/rufus-ruby] :

    http://groups.google.com/group/rufus-ruby


== issue tracker

http://rubyforge.org/tracker/?atid=18584&group_id=4812&func=browse


== source

http://github.com/jmettraux/rufus-sqs

    git clone git://github.com/jmettraux/rufus-sqs.git


== author

John Mettraux, [email protected] 
http://jmettraux.wordpress.com


== the rest of Rufus

http://rufus.rubyforge.org


== license

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.