Hi PJ, Unfortunately not, if you're dynamically defining rake tasks like that with meta programming, then you need the list to exist first. There are some workarounds with Rake which you might learn, the "dynamic" tasks as detailed in http://www.youtube.com/watch?v=KaEqZtulOus
Also, I have to say I can't really endorse or agree with the Gem name, I have no idea which "Service" you are referring to, but it looks like it's specifically ubuntu and init.d and friends related, and is misleadingly named. Lee Hambley -- http://lee.hambley.name/ +49 (0) 170 298 5667 On 22 March 2014 02:50, Pj Kelly <p...@crushlovely.com> wrote: > Hello All, > > I just published an early release of Capistrano plugin that I was > interested in getting some input on. > > https://github.com/crushlovely/capistrano-service > > The goal of this plugin is to make it simple to define Capistrano tasks > for controlling your linux services. > > The thing I'm wondering about is if there's any way to get these tasks > lazily evaluated so that I don't have to do any configuration in my > Capfile. The way it currently works, I have to define my service before > requiring the plugin. Here's an example of my Capfile: > > set :services, [:nginx, :unicorn] require 'capistrano/service' > > Is there any way around this? I want to make sure this plugin follows the > standards being set by Capistrano 3, so any and all suggestions are welcome. > > Thanks in advance. > > -- > 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 capistrano+unsubscr...@googlegroups.com. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/capistrano/2e713694-21e9-4970-a177-c9fbda50c5a4%40googlegroups.com<https://groups.google.com/d/msgid/capistrano/2e713694-21e9-4970-a177-c9fbda50c5a4%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 capistrano+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/CAN_%2BVLVNbdJ_QCSyZ4hjb0OK9rVCRzaymane7EC_oi1S%3DXsaMw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.