Hey Lee,

Thanks for the reply.  I will check out that talk and see if there's a more 
elegant way to make this happen.

Fair point on the name.  Will give that some thought and post here once we 
have a more descriptive name.

Best, PJ

On Saturday, March 22, 2014 5:12:47 AM UTC-7, Lee Hambley wrote:
>
> 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 <javascript:>>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+...@googlegroups.com <javascript:>.
>> 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/25b329f4-f09b-4853-9b5c-e0438ec2d03c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to