[Capistrano] Getting user input from within tasks

2007-03-15 Thread rcreasey
I've been trying to extend Capistrano into more than just a web application deployment framework and into the realm of system administration. I wanted to write a recipe file that would include common tasks, such as adding and deleting system users, but realized that it would only really work if I

[Capistrano] defining servers on the cap cli

2007-03-15 Thread rcreasey
I'm having a difficult time wrapping my head around the differences between the variables that capistrano uses internally and how to reference them, specifically hosts, servers, etc. Basically, i'm trying to define servers on the fly to a generic recipe file and it's not working: ## myrecipe.rb:

[Capistrano] Re: Getting user input from within tasks

2007-03-15 Thread rcreasey
Heh. So disregard this. It really helps if I actually use the right syntax for reading user input: username = gets.chomp *smacks forehead* - ryan --~--~-~--~~~---~--~~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit th

[Capistrano] Re: Non deploy task called regardless of role

2007-03-16 Thread rcreasey
In my digging, I think I had found a way to get capistrano to perform how I was expecting it to with the -s hosts=server1,server2 set on the command line: In actor.rb: *** 102,108 end def find_hosts ! environment_values(:hosts) || @options[:hosts] end

[Capistrano] Re: Non deploy task called regardless of role

2007-03-16 Thread rcreasey
Well, I can appreciate that each Task has its own server scope, but I was looking for a more generic way to just classify a Task for all servers, regardless of role. In fact, I have such a homogeneous environment, I didn't want to classify systems into roles. I merely wanted to express that a ta