Class: Puppet::Util::Windows::Service::SERVICE_DELAYED_AUTO_START_INFO
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Puppet::Util::Windows::Service::SERVICE_DELAYED_AUTO_START_INFO
- Defined in:
- lib/puppet/util/windows/service.rb
Overview
docs.microsoft.com/en-us/windows/win32/api/winsvc/ns-winsvc-service_delayed_auto_start_info typedef struct _SERVICE_DELAYED_AUTO_START_INFO
BOOL fDelayedAutostart;
SERVICE_DELAYED_AUTO_START_INFO, *LPSERVICE_DELAYED_AUTO_START_INFO;
Instance Method Summary collapse
-
#[]=(key, value) ⇒ Object
Intercept the accessor so that we can handle either true/false or 1/0.
- #aset ⇒ Object
Instance Method Details
#[]=(key, value) ⇒ Object
Intercept the accessor so that we can handle either true/false or 1/0. Since there is only one member, there’s no need to check the key name.
255 256 257 |
# File 'lib/puppet/util/windows/service.rb', line 255 def []=(key, value) [0, false].include?(value) ? aset(key, 0) : aset(key, 1) end |
#aset ⇒ Object
252 |
# File 'lib/puppet/util/windows/service.rb', line 252 alias aset []= |