Skip to content
Browse files

Wrote the kicker article

  • Loading branch information...
1 parent f1db3ca commit 2c894d8f61cf155abe79a01e56c0da72822b718a @alloy committed
View
38 content/blog/2009/04/10/kicker-kicks-for-kicks.textile
@@ -0,0 +1,38 @@
+---
+title: Kicker kicks for kicks
+created_at: 2009-04-12 17:29:53.984481 +02:00
+blog_post: true
+filter: textile
+layout: post
+extension: html
+---
+
+A OS X command line tool to execute commands when a file, or file in a directory, is updated.
+
+h4. Why?
+
+At the office we have long had the idea of rewriting autotest to be simpler to work with. Customizing the way autotest works can be done, but in short; it can be a bit hard sometimes when you just wanna get started.
+
+Then not so long ago I had to work on some text formatted as Textile and had to go back to my terminal to render it as HTML after each edit. This started to get tedious, and being the Ruby _and_ Cocoa head that I am, I quickly whipped up a simple purpose agnostic cli tool which uses the OS X FSEvents API to watch for file changes.
+
+_I just love how easy it is to write "small" tools with Ruby and Cocoa that do seemingly "big" things. But more on that in the next blog post._
+
+h3. Install
+
+After some weeks of usage, and finally implementing the ability to watch multiple paths, I can now say it’s definitely usable. Get it:
+
+<code>$ sudo gem install alloy-kicker -s http://gems.github.com</code>
+
+Now go kick some stuff!
+
+_If you want to checkout the source you can do so on "GitHub":http://github.com/alloy/kicker/tree/master._
+
+h4. Example
+
+For instance, say you’d like to run a Ruby test case every time either the library file, or the test case file is saved. With kicker this would work like this:
+
+<code>$ kicker -e "ruby test/unit/article_test.rb" **/article*.rb</code>
+
+From now on whenever you save any file which matches the glob expression the test case will be ran.
+
+So know you know. Go wild!
View
10 content/blog/2009/04/10/kicker.textile
@@ -1,10 +0,0 @@
----
-title: Kicker
-created_at: 2009-04-12 17:29:53.984481 +02:00
-blog_post: true
-filter: textile
-layout: post
-extension: html
----
-
-A tool to run commands when a path being watched is updated.
View
9 content/css/site.css
@@ -97,6 +97,15 @@ body {
color: #993399;
}
+.body code {
+ font-size: 14px;
+ color: black;
+ background-color: #F0F0F0;
+ padding: 5px;
+ margin-left: 15px;
+ margin-right: 15px;
+}
+
div.article div.date {
color: #C0C0C0;
margin-top: -27px;

0 comments on commit 2c894d8

Please sign in to comment.
Something went wrong with that request. Please try again.