Missing functions, e.g. new-rabbitConsumer



I can't get the module to work. I am trying to run this code:
Import-Module PoshRabbit
$q = start-consumer -hostname rabbithost -exchange exchange -routingkey '*'
$msg = wait-consumer $q;
write-host 'event received: ' $msg;
But it looks like I'm missing a whole bunch of function definitions, here's the first error (of many):
new-rabbitConsumer : The term 'new-rabbitConsumer' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is 
correct and try again.
At ...\WindowsPowerShell\modules\poshrabbit\poshrabbit-functions.ps1:263 char:23
+     $local:consumer = new-rabbitConsumer @local:a;
+                       ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (new-rabbitConsumer:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
I looked inside the module but could find no definition of this function in "PoshRabbit-functions.ps1". Where should it be coming from?


beefarino wrote Nov 2, 2014 at 3:30 PM

I'll take a look at this sometime this week and get back to you. It wouldn't surprise me if the project zip is bonked.

Ian_C wrote Nov 5, 2014 at 11:09 AM

Thanks - like others have found I couldn't open it with Windows' default ZIP behaviour, I needed 7zip to read it.