Delete files from Campfire Rooms
I wanted to take a stab at doing some Ruby, so I whipped up this little utility delete all the files in one or all of your campfire rooms for a given URL.
You can get it on my github.
Running the program
To run, the command is as follows:
server is the name of your campfire server (in the form of name.campfirenow.com) and
apitoken is the token given to you. You can get this token by going under the “My Info” link on your campfire page.
The script will print out a list of rooms, and give you a choice of which one to delete from (or all). You can ignore the “peer certificate” warning, it just means that you’re not verifying the cert from campfirenow. We’ll assume the server is correct.
Here’s what a sample run will look like:
Again, since this is my first ever Ruby program, it’s probably in pretty crappy shape. Deriding comments about the exact level of crappiness are always welcome.