Thanks for the praise! It's always nice to hear about people using the
tools successfully.
I'm happy to say that there's some actual documentation to answer your
question :)
Check out cmdopts and consume_args in the paver.runtime doc:
http://www.blueskyonmars.com/projects/paver/runtime.html
Most likely, you want cmdopts
The very end of the Getting Started Guide has an example:
http://www.blueskyonmars.com/projects/paver/getting_started.html#gettingstarted
Another example is Paver's own pavement.py's deploy task:
Kevin
--
Kevin Dangoor
Product Manager
SitePen, Inc.
Web development experts:
development, support, training
Neat. I've been pushing Paver as a *Python-centric* tool, though it
can obviously be used universally.
Kevin
On May 13, 2008, at 10:26 PM, programmer.py wrote:
--
>
> Yah, I am working on a GWT front end / Pylons based backend. So I
> find myself needing to push eggs and "gwt apps" around.
Wow. That's unexpected, but does seem like a perfect case for Paver.
Paver was born out of a somewhat similar need... when deploying to
production, I needed to create a custom Dojo build.
> Part of pushing the GWT app around is compiling the GWT app with the
> GWTCompiler. GWTCompiler magically transforms Java code into
> javascript. I then tar the gwt javascript files up and upload them
> using sftp (with paramiko libraries - nice package there!)
Hey, if you find yourself with some tim, can you sprinkle some
paramiko goodness in the paver.ssh module? I can worry about docs and
all, but it would be convenient to have that fleshed out a bit from
someone who's already used Paramiko.
(First up on my list is zc.buildout integration...)
The end goal is that Paver can do the same kinds of things as
Capistrano. We've got some great tools in Python, though... so I'm
ultimately envisioning a process that involves...
building an egg
copying the egg over to the server(s)
possibly generating the list of version numbers for buildout
running buildout on the server
But the idea is to get there step by step...
> Yeah, looking at those names, they seem a bit "wrong", but they work
> for me. Thanks for the documentation links. I read the docs once
> before, but just got lazy this Tuesday evening.
No problem. I didn't mind the question at all. I was just pleased to
find that there were some answers on the site :)
Kevin
> Take a look at func (https://fedorahosted.org/func), which is about
> the same as Capistrano for Python -- no need to reinvent the wheel.
Yeah, I don't want to reinvent the wheel, and Func looks
interesting... but, Func does not appear to eliminate the need for a
Paramiko-based solution. A great many people, myself included, don't
have the ability to set up arbitrary servers everywhere... almost
everyone has ssh access now though.
Func definitely has the right idea, though.
Kevin
Interesting idea. I'll definitely keep it in mind. (Patches accepted ;)
Next on my list is zc.buildout, though.
Kevin