Sha256: c90f62e45fa55f3cc023b1ca85e91e1e5564d450453b2eea634f2e0f4295dfc9

Contents?: true

Size: 729 Bytes

Versions: 9

Compression:

Stored size: 729 Bytes

Contents

#######################################################################
# demo_services.rb
#
# Test script for general futzing that shows off the basic
# capabilities of this library. Modify as you see fit.
#
# You can run this sample program via the "example:services" task.
#######################################################################
require 'win32/service'
include Win32

puts "VERSION: " + Service::VERSION

p Service.exists?('Schedule')
p Service.exists?('bogusxxx')

status = Service.status('Schedule')
p status

info = Service.config_info('Schedule')

print "\n\nShowing config info for Schedule service\n\n"
p info

print "\n\nAbout to show all services\n\n"
sleep 10

Service.services{ |struct|
  p struct
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
win32-service-1.0.1 examples/demo_services.rb
win32-service-0.8.6 examples/demo_services.rb
win32-service-0.8.5 examples/demo_services.rb
win32-service-0.8.4 examples/demo_services.rb
win32-service-0.8.3 examples/demo_services.rb
win32-service-0.8.2 examples/demo_services.rb
win32-service-0.8.1 examples/demo_services.rb
win32-service-0.7.2-x86-mingw32 examples/demo_services.rb
win32-service-0.7.2 examples/demo_services.rb