Nice! Thanks for sharing this tip. - Jamis
On Apr 16, 2008, at 3:27 PM, shadowbq wrote:
ie. if you want to hard code in different users to execute as.. menu.choice :root do set :user, :root.to_s end menu.choice :capistrano do set :user, :capistrano.to_s end menu.choice :administrator do set :user, :administrator.to_s end On Apr 16, 5:14 pm, shadowbq <[EMAIL PROTECTED]> wrote:Anyway.. I posted a simple highline menu enabled capfile.. (its also in the file section) I haven't seen anyone do this.. This actually helps me. #example capistrano menu using highline menu system # Published under BSD license # written by:shadowbq -http://shad0wbq.blogspot.com # verified on: capistrano 2.2.0 & highline 1.4.0 role :comps, "localhost" desc "Example Highline menu" task :menu do Capistrano::CLI.ui.say("\nThis is with a oneline menu layout...") Capistrano::CLI.ui.choose do |menu| menu.layout = :one_line menu.header = "Execute" menu.prompt = "Application? " menu.choice :hello do helloworld end menu.choices(:skip, :exit) do Capistrano::CLI.ui.say("Choose not to run..") end end end task :helloworld do run "echo helloworld." end--~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
smime.p7s
Description: S/MIME cryptographic signature