70 points · by dmishe · 14y ago · 24 comments
Having said that, it looks like the HTTP server is the USP here. Being able to have non-techies run Fabric tasks is definitely a goal that's passed me fleetingly in the night. So, add this to Fabric and we're good.
EDIT: The author, Dan Lecocq is near me in Seattle so, what with it being a small world and all, I just wrote to him (in case he's not the author of this thread) via his blog to ask him what he didn't like about Fabric, and suggested he respond here.
Similarly, it frequently benefits all projects to have a few alternatives and different implementations for the same concept. Ideas can be explored independently and features can be borrowed back and forth. If nothing else, and provided that shovel gets to a fuller development stage, this could be a good thing for all.
Isn't that equipping monkeys with guns? We all know what happens when you do that: http://www.youtube.com/watch?v=AabGdnTxqD0
I'm half a mind to write my own with pbs (https://github.com/amoffat/pbs) thrown in...
http://www.jonnyreeves.co.uk/2011/08/getting-python-and-fabr...
Windows doesn't support hashbangs, so Shovel does currently need a batch file in Python's Scripts directory, but that's not a huge deal.
However :
"Conditionals control what make actually "sees" in the makefile, so they cannot be used to control shell commands at the time of execution." (emphasis mine).
So I get that is would not solve the kind of issues I had in mind... Never mind.
I'd argue that they always work better than any of these language-specific alternatives ever do.
I'm not saying that GNUMake or BSD's Make or any particular Make is perfect. Surely there is still a lot of evolution to happen in build systems.
What I am saying is that if you have a bunch of scripts to run & a bunch of files they produce, you can't beat a general purpose dependency graph with files for nodes and command lines for edges.
Lately, I `touch Makefile` as one of the absolute first things I do on a project, regardless of language or framework, even when just hacking around. I'll even write a Makefile if I'm just doing some data analysis, like multi-stage log grepping. I find `rm intermediate.file; make` to be a nice alternative to putzing with command history and avoiding waisting time redoing expensive steps.
Hell, we completely manage the configuration on our servers using Make instead of something like Puppet or Chef. So far, it's working pretty well, bit I'm still a newbie at sysadmin stuff.
We've even replaced all of the db migration & other common Rails rake tasks with a few short bash scripts and ~10 lines of Make. We use .sql files for migrations and store db/schema.sql instead of db/schema.rb. It's two orders of magnitude faster to run our tiny script/dump-schemas.sh against psql instead of loading the Rails environment to query the db.
Why not "just use makefiles".
Because they use a BS syntax and are not as convenient as Python.
Because they are not even portable, whereas Python scripts run on Windows just fine.
Because they weren't even invented for that purpose, but for compiling stuff, and they failed even that so much, that every other project has it's own implementation (cmake, qmake, ant, scons, ...) or at the very least uses automation tools on top make, like the autotools, etc.
Probably the embodiment of all that's wrong with legacy cruft and voodoo practices.
It's neither legacy nor voodoo. Your statement that if you suggest using one tool in place of another makes you something besides a hacker is incomprehensible.
PUppet/chef/capistrano are specialized versions of Make. Rake is a misnomer, as it's just a collect of "tasks". Again, it's a subset of what Makefiles can do.
It's a little bit like using Lisp -- it's a "dilapidated", "old" tool but most modern tools are subsets of it in some manner.
What I would like to see is some facility to aid with writing meaningful tasks that execute system utilities or perform work on remote servers over ssh.
The Web API is also a nice concept, but I would prefer a control panel over Fabric-like tool rather than a dependency that I have to install on every target host.
> Tasks should be easy to define -- one decorator, no options
lets see how long it lasts... at some point they will realize they need a build-tool. Rake is a build-tool. Shovel is not.