Use `fetch(:application)`. Nowhere is documented bare use of the "variable" by it's name, in previous versions this was done with an incredibly nasty method_missing hack, and has been intentionally removed from the new version.
Lee Hambley -- http://lee.hambley.name/ +49 (0) 170 298 5667 On 14 October 2013 14:26, Rafa García <[email protected]> wrote: > Hi Jürgen, > > A little detail, next time don't include your pastie URL inside a script > tag. You just write/share the link. > > Thanks > > > 2013/10/13 Jürgen Coetsiers <[email protected]> > >> I am trying to use the application name as a part of the vhostname. >> >> Somehow I do not have access to it in the staging.rb >> >> cap staging deploy:config_vhost >> cap aborted! >> undefined local variable or method `application' for main:Object >> config/deploy.rb:25:in `block (2 levels) in <top (required)>' >> /Users/jurgenc/.rvm/gems/ruby-2.0.0-p247/gems/capistrano-3.0.0/lib/capistrano/application.rb:12:in >> `run' >> /Users/jurgenc/.rvm/gems/ruby-2.0.0-p247/gems/capistrano-3.0.0/bin/cap:3:in >> `<top (required)>' >> Tasks: TOP => deploy:config_vhost >> (See full trace by running task with --trace) >> >> <script src='http://pastie.org/8399717.js'> >> </script> >> >> >> -- >> -- >> * 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 >> --- >> You received this message because you are subscribed to the Google Groups >> "Capistrano" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- > -- > * 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 > --- > You received this message because you are subscribed to the Google Groups > "Capistrano" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- * 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 --- You received this message because you are subscribed to the Google Groups "Capistrano" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
