ANN: Gantry system administration and deploy tool written in clojure

2011-07-06 Thread Damon Snyder
Hello, I wanted to let everyone know about a tool I have been working on. I'm calling it gantry (a type of crane that I see every day on my commute on BART to SF and inspired by crane). I started working on it after seeing crane (https://github.com/getwoven/crane) and seeing the possibilities

Re: ANN: Gantry system administration and deploy tool written in clojure

2011-07-09 Thread Damon Snyder
. On Jul 6, 10:36 pm, Damon Snyder drsny...@gmail.com wrote: Hello, I wanted to let everyone know about a tool I have been working on. I'm calling it gantry (a type of crane that I see every day on my commute on BART to SF and inspired by crane). I started working on it after

Question about when to use protocol+record and compilation warnings

2010-12-26 Thread Damon Snyder
Hello, In an effort to learn a little more about clojure (and possibly introduce it at work) I decided to write a native client for the Beanstalk work queue. See http://kr.github.com/beanstalkd/ for more information about the queue and https://github.com/drsnyder/beanstalk for the client. One of

Re: Question about when to use protocol+record and compilation warnings

2010-12-28 Thread Damon Snyder
Thanks everyone for all of the feedback. I think I have a solution to the warnings and if I understand deftype/defrecord, I should be able to replace defrecord with deftype in my implementation. I'll give it a try and report back when I have a chance. Thanks, Damon On Dec 26, 7:31 pm, David

Re: Question about when to use protocol+record and compilation warnings

2010-12-28 Thread Damon Snyder
. I added this to the core.clj and the tests and there are no warnings. Thanks! Damon On Dec 28, 9:45 pm, Damon Snyder drsny...@gmail.com wrote: Thanks everyone for all of the feedback. I think I have a solution to the warnings and if I understand deftype/defrecord, I should be able to replace

Best practice for distributing a standalone clojure command line utility

2011-06-16 Thread Damon Snyder
Hi Everyone, I'm have a side project that I'm working on that I want to distribute as a standalone script. This is probably best illustrated as an example. What I would like to be able to do is give users a script, so they can do: gantry -H example.host.com -f examples/tasks.clj uptime

Re: Properly including clojure-contrib

2011-06-16 Thread Damon Snyder
Hi cmn, I think if you add clojure.contrib.string to your use or simply add (:use clojure.contrib.string). I think that should fix it. Damon On Jun 16, 12:16 pm, octopusgrabbus octopusgrab...@gmail.com wrote: What is the proper way to :use clojure contrib so split resolves as a symbol? ns

Re: Best practice for distributing a standalone clojure command line utility

2011-06-17 Thread Damon Snyder
Hi Miki, Thats an interesting idea that I had not thought of. It nicely encapsulates everything in one package. Thanks! Damon On Jun 16, 6:15 pm, Miki miki.teb...@gmail.com wrote: One more option is to embed the jar in base64 encoding in a script, extract the jar to a temp location and run it.

Re: Parallel SSH and system monitoring in Clojure

2012-03-22 Thread Damon Snyder
Hi Chris, Cool. Thanks for sharing with the group. I also worked on something similar: https://github.com/drsnyder/gantry. I was getting frustrated with our current Frankenstein version of capistrano and wanted to tinker with building a basic remote execution and deployment tool using clojure.

Re: Feedback on idiomatic clojure

2010-08-19 Thread Damon Snyder
Hi Meikel, Nicolas, and Justin, Thank you for the great feedback! I learned a lot. I was puzzled about (update-in (update-in)) and after doing that the - operator makes a lot of sense. The reduce is clever and fits nicely as well. I dropped the function that read in the lines of the file and used