You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RubiGen
Hey Nic,
First off, I build all of our gems using newgem and rubigen (they're
awesome!!!). I am working on a gem for my company to manage all of
our logging utilities and following my companies standard practice I
have one binary 'logging_utility' which IT will use to do all the
necessary commands. I am using RubiGen to build a generator to
install the necessary Log4J libraries to run our logger. However, I
am having a hell of a time getting the Generator to load because the
generator is named different than the binary (which I would like to do
since logging_utility does a lot more than just install libraries).
I know in your documentation that you said that binary needs to be
named the same as the generator, but is there anyway to get around
this?
# Rewrite configuration file
if install_dir != config.loghub_lib_dir
hl.say "Updating configuration file..."
SonicLogger::Cluster.configure(:loghub_directory => install_dir)
end
puts "Done."
I get the folllow error message when I try the command:
[root@OrionFoot sonic_logger]# ruby bin/logger_utility install_loghub
Install loghub library in the /usr/local/loghub directory? (y/n)
y
Generating library...
Couldn't find 'loghub_lib' generator
Orion
unread,
Feb 6, 2008, 1:49:38 PM2/6/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RubiGen
Nevermind.
This does actually work but it turns out the gem has to be installed
instead of just running the executable straight out of the development
directory.
Thanks
Nic Williams
unread,
Feb 6, 2008, 3:12:11 PM2/6/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rub...@googlegroups.com
Oh, you can't find the generator unless its an installed gem? Yeah that's probably true by default.
You can add additional paths to the search for generators, into the script/generate method, but its a bit convoluted and you'd need to do it for every gem you needed it to work for.
If its a real problem, I can have a think about something else. Perhaps have a ~/.rubigen config file that adds other paths to search for gems-in-development to find generators.