I think I just found my answer. Although the firewall is POSIX compliant, the shell that the configuration commands are run in is not POSIX compliant.. So, in this instance, I will have to rely on native Ruby and the net::ssh libs
If Im missing something or there is a way to get around this, please let me know. On Jun 5, 2011, at 7:18 PM, masterof0 wrote: > I am new to Capistrano and am looking at it to replace some of my > existing python scripts. As a basic test, I wanted to try to log into > a firewall and run a simple command. Unfortunately, I get a simple > error and have not had success tracking down the root cause. My > current cap file is: > > role :firewalls, "bluebox" > > desc "show version information" > task :showConfig, :roles => :firewalls do > run "show version" > end > > and when I run 'cap showConfig I get the following output: > > * executing `showConfig' > * executing "show version" > servers: ["bluebox"] > [bluebox] executing command > ** [out :: bluebox] > ** [out :: bluebox] error: syntax error, expecting <command>: -c > > I have tried reviewing the logs on the firewall to see what is > actually occurring, but no luck there. Any ideas on how to debug or > troubleshoot this to determine what may be occurring. Most > documentation I have found revolves around Rails deployments. In my > case I am more interested in a non-rails deployment and just can't > find a whole lot out there. > > Chris -- * You received this message because you are subscribed to the Google Groups "Capistrano" group. * To post to this group, send email to [email protected] * To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano?hl=en
