capistrano-service

52 views
Skip to first unread message

Pj Kelly

unread,
Mar 21, 2014, 9:50:05 PM3/21/14
to capis...@googlegroups.com
Hello All,

I just published an early release of Capistrano plugin that I was interested in getting some input on.


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.

Lee Hambley

unread,
Mar 22, 2014, 8:12:47 AM3/22/14
to capistrano
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.

--
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.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/2e713694-21e9-4970-a177-c9fbda50c5a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pj Kelly

unread,
Mar 28, 2014, 2:02:16 AM3/28/14
to capis...@googlegroups.com
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

Pj Kelly

unread,
Jul 24, 2015, 6:29:59 PM7/24/15
to Capistrano, p...@crushlovely.com
Just closing the loop on this thread.  We re-thought this library and re-released it under a different name: capistrano-upstart-service.

Lee Hambley

unread,
Jul 25, 2015, 10:48:45 AM7/25/15
to Capistrano
Reply all
Reply to author
Forward
0 new messages