Omnibus/rubygems and manpages


#1

Hi,

the reason why I was using debian packages for Chef installation is
man pages. Is there a way to have man pages with omnibus/rubygems
installed?

Thanks,
Motiejus Jakštys


#2

On Sat, Jun 2, 2012 at 8:53 AM, Motiejus Jakštys desired.mta@gmail.com wrote:

the reason why I was using debian packages for Chef installation is
man pages. Is there a way to have man pages with omnibus/rubygems
installed?

The man pages are in the gem package, a couple workarounds:

man -M /opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.10/distro/common/man
chef-client

Note that the clojure based omnibus (before 10.12.0.rc.1) was in
/opt/opscode and the ruby based omnibus is now in /opt/chef.

You can add something like this to your man.conf:

MANPATH /opt/opscode/embedded/lib/ruby/gems//gems/chef/distro/common/man

man-db 2.5.7-4 and 2.5.9-4 on Ubuntu 10.10 maverick appear to truncate
/opt/chef/embedded/lib/ruby/gems//gems/chef/distro/common/man to
/opt/chef/embedded/lib/ruby/gems//gems/chef/dis, I’m giving up on
that for now.

Bryan


#3

On Sat, Jun 2, 2012 at 4:46 PM, Bryan McLellan btm@loftninjas.org wrote:

On Sat, Jun 2, 2012 at 8:53 AM, Motiejus Jakštys desired.mta@gmail.com wrote:

the reason why I was using debian packages for Chef installation is
man pages. Is there a way to have man pages with omnibus/rubygems
installed?

The man pages are in the gem package, a couple workarounds:

I wonder how didn’t I think to check that earlier… Thanks.


Motiejus Jakštys


#4

On Saturday, June 2, 2012 at 8:13 AM, Motiejus Jakštys wrote:

On Sat, Jun 2, 2012 at 4:46 PM, Bryan McLellan <btm@loftninjas.org (mailto:btm@loftninjas.org)> wrote:

On Sat, Jun 2, 2012 at 8:53 AM, Motiejus Jakštys <desired.mta@gmail.com (mailto:desired.mta@gmail.com)> wrote:

the reason why I was using debian packages for Chef installation is
man pages. Is there a way to have man pages with omnibus/rubygems
installed?

The man pages are in the gem package, a couple workarounds:

I wonder how didn’t I think to check that earlier… Thanks.


Motiejus Jakštys

It’s not the best workaround, but knife help is basically a wrapper for man as well. If you’re willing to use that instead, you won’t need to adjust your MANPATH when upgrading Chef.


Dan DeLeo