[Snap][Announce] New snaplet - Tasks

2 views
Skip to first unread message

Kamil Ciemniewski

unread,
Dec 16, 2011, 10:43:10 AM12/16/11
to sn...@snapframework.com
Hi all,

I'd like to announce first release of my new snaplet - Tasks.

Tasks let's you create app tasks akin to Rake in Ruby On Rails.
It works through routes and dispatches command line commands
through HTTP to given roue for task.

Routes for tasks are generated by handy function 'task'
which takes String for its name and generated hash used later
in routes.

When you fire some task - name that You give is also hashed
to match route.

Also 'task' function takes care of setting long enough timeout
( a month :) ) and letting you run handler only if you
run it from 'localhost'.

Code is at BitBucket:

Package is also on Hackage:
--
http://digitalinventor.pl
Kamil Ciemniewski

MightyByte

unread,
Dec 16, 2011, 11:00:04 AM12/16/11
to Kamil Ciemniewski, sn...@snapframework.com
Hi Kamil,

This looks very cool. I have one comment. Right now it seems to me
that task specification would be a little more natural inside of a
config file instead of on the command line. Have you considered using
the built-in config infrastructure [1] to let the user specify tasks?

[1] http://hackage.haskell.org/packages/archive/snap/0.7/doc/html/Snap-Snaplet.html#v:getSnapletUserConfig

Reply all
Reply to author
Forward
0 new messages