Is Capistrano needed in a Rails app's Gemfile?

313 views
Skip to first unread message

Nick Hoffman

unread,
May 11, 2012, 11:24:55 AM5/11/12
to capis...@googlegroups.com
Hi guys. Is it necessary to put Capistrano in a Rails app's Gemfile, or at least, in the "development" group in the Gemfile?

If not, are there any benefits to doing so?

Thanks,
Nick

Donovan Bray

unread,
May 11, 2012, 11:35:03 AM5/11/12
to capis...@googlegroups.com
It's fine in the development group and it should be present in the Gemfile

I make a habit of always doing 

bundle install --binstubs

On a new project so I can do

bin/cap ....

Instead of 

bundle exec cap ...
--
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capis...@googlegroups.com
* To unsubscribe from this group, send email to capistrano+...@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en

Nick Hoffman

unread,
May 11, 2012, 1:11:46 PM5/11/12
to capis...@googlegroups.com
Thanks for that tip, mate. Am I correct in assuming that it's safe to tell Bundler not to actually require Capistrano when booting? IE:
gem 'capistrano', :require => nil

Cheers,
Nick


On Friday, 11 May 2012 11:35:03 UTC-4, dbray wrote:
It's fine in the development group and it should be present in the Gemfile

I make a habit of always doing 

bundle install --binstubs

On a new project so I can do

bin/cap ....

Instead of 

bundle exec cap ...

On Friday, 11 May 2012 11:35:03 UTC-4, dbray wrote:
It's fine in the development group and it should be present in the Gemfile

I make a habit of always doing 

bundle install --binstubs

On a new project so I can do

bin/cap ....

Instead of 

bundle exec cap ...

On May 11, 2012, at 8:24 AM, Nick Hoffman <ni...@deadorange.com> wrote:

Hi guys. Is it necessary to put Capistrano in a Rails app's Gemfile, or at least, in the "development" group in the Gemfile?

If not, are there any benefits to doing so?

Thanks,
Nick

--
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capis...@googlegroups.com
* To unsubscribe from this group, send email to capistrano+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en

Donovan Bray

unread,
May 12, 2012, 2:04:04 AM5/12/12
to capis...@googlegroups.com
Not necessary if you put it in the development group; at least I don't in mine. 
* To unsubscribe from this group, send email to capistrano+...@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en
Reply all
Reply to author
Forward
0 new messages