That's still ugly but I see how it works. I think I'll give it a shot that way see how it goes
I still need to do something to make sure that the class is instantiated after the tables are instantited. Run stages maybe? Uhh, still ugly. I wish there was just some kind of syntactical element for this. Spenser On Sun, Dec 19, 2010 at 6:17 AM, Matthew Macdonald-Wallace <li...@truthisfreedom.org.uk> wrote: > On Sun, 2010-12-19 at 04:40 -0600, Spenser Gilliland wrote: >> Matthew, >> >> I'm a bit confused on your code, how does an instance get added to the db? > > Yeah, that's probably my fault... :D > > My thought was that if you have a known path to the redmine instances > you could create a ruby class which iterates over the filesystem and > pulls each directory/installation name into a CSV string. > > If you prefix your redmine database names with something obvious when > you install them, then you should be able to connect to the database > server and extract the table names that are relevant using "use > mysql;SELECT tableName from tables where tableName LIKE '%redmine_prefix > %';" or similar. > > So the "db" which I spoke of is more of a datastore/list which contains > the currently installed redmine instances - how you retrieve this data > is left as an exercise for the reader... ;) > > Cheers, > > M. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-us...@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- Spenser Gilliland Computer Engineer Illinois Institute of Technology -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.