On Tue, Oct 14, 2008 at 9:58 AM, Bryan Berry <[EMAIL PROTECTED]> wrote:
> thanks Jeff!
>
> this does the trick w/ git
>
> git-dir="--git-dir=/home/hitman/Prog/test1/.git"
> fabric.run("git $(git-dir) fetch $(my_remote_repo)")
>
> another quick question, how can I specify args for operations like
> deploy? do operations not take args?
>
> I want to pass the application my version tag # as an argument
>
> right now I am using prompt('version', "Input the version you want to
> deploy")
> version = ENV['version']

Given a fabfile like this:

def hello(**args):
  print "Got args:", args

Then:

[cvh: ~]$ fab hello:a=b
   Fabric v. 0.0.9, Copyright (C) 2008 Christian Vest Hansen.
   Fabric comes with ABSOLUTELY NO WARRANTY; for details type `fab warranty'.
   This is free software, and you are welcome to redistribute it
   under certain conditions; type `fab license' for details.

Running hello...
Got args: {'a': 'b'}
Done.
[cvh: ~]$

Was that what you meant?

>
> _______________________________________________
> Fab-user mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/fab-user
>



-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.
_______________________________________________
Fab-user mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to