Is there any client available to achieve this in ruby?

On Tue, Mar 7, 2017 at 3:48 PM, R.I.Pienaar <r...@devco.net> wrote:

>
>
> On Tue, Mar 7, 2017, at 11:14, rakare2...@gmail.com wrote:
> > Hi,
> >
> > I want to publish a message from one of mcollective server to queue and
> > client has to fetch that message. Am trying below which didn't work,
> >
> > From server I tried with below code,
> >
> > ==============================
> > module MCollective
> >     class Message
> >       def body
> >         result = {:testing => [],
> >                   :timestamp => Time.now.utc.to_i}
> >
> >         result[:testing] = ["testwor1", "testwor2"]
> >
> > PluginManager["connector_plugin"].connection.publish("/
> queue/mcollective.event",
> > result.to_json)
> >       end
> >     end
> > end
> > ===============================
> >
> > Also not sure how to fetch this message from the queue from the client
> > like
> > how registration works. Is there any to perform this? Am trying this for
> > one of my automation.
>
> cant from a normal client, would have to write a daemon or custom client
>
> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "mcollective-users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/mcollective-users/PRoNMmHS91o/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> mcollective-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"mcollective-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mcollective-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to