On Wed, Apr 23, 2008 at 2:15 PM, david <davidhooey / gmail.com> wrote:
>
> On Apr 19, 11:42 pm, Roger Pack <rogerpack2... / gmail.com> wrote:
>  > >  Win32::Service::Error (T):
>  > >     c:/ruby/lib/ruby/gems/1.8/gems/win32-service-0.6.1-x86-mswin32-60/
>  > >  lib/win32/service.rb:920:in `status'
>  >
>  > It is running as the same user with enough privileges, I'd imagine?
>
>  Roger, yes I'm a local Administrator on the box.
>
>  Dave
>

Also, I'll probably be releasing a new version soon (this weekend?)
which will have a WMI::Base#set_wmi_class_name method, similar to
ActiveRecord's set_table_name for legacy tables.

Then you could write your model like this:

class Service << WMI::Base
  set_wmi_class_name 'Win32_Service'
end

and in your controller:

 def index
   @services = Service.find(:all)
 end

I like the looks of this better, I just never really had a need for it
before now.

Gordon