diff options
author | Tim Smith <tsmith@chef.io> | 2018-11-15 20:47:42 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-11-15 20:58:47 -0800 |
commit | 78ff3f7f9e039b9bcf5279154d051014bd9cb725 (patch) | |
tree | 1115f11ac5723019d79e4e7b5037827d016ecbca /lib/chef/resource/windows_service.rb | |
parent | 6f8f9c3241929032c1c62fc9c279879f49a185ab (diff) | |
download | chef-78ff3f7f9e039b9bcf5279154d051014bd9cb725.tar.gz |
Expand windows_service specs
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/windows_service.rb')
-rw-r--r-- | lib/chef/resource/windows_service.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/resource/windows_service.rb b/lib/chef/resource/windows_service.rb index 14dd5e1520..33805ed482 100644 --- a/lib/chef/resource/windows_service.rb +++ b/lib/chef/resource/windows_service.rb @@ -47,17 +47,17 @@ class Chef validation_message: "The display_name can only be a maximum of 256 characters!", introduced: "14.0" - # https://github.com/djberg96/win32-service/blob/ffi/lib/win32/windows/constants.rb#L19-L29 + # https://github.com/chef/win32-service/blob/ffi/lib/win32/windows/constants.rb#L19-L29 property :desired_access, Integer, default: SERVICE_ALL_ACCESS - # https://github.com/djberg96/win32-service/blob/ffi/lib/win32/windows/constants.rb#L31-L41 + # https://github.com/chef/win32-service/blob/ffi/lib/win32/windows/constants.rb#L31-L41 property :service_type, Integer, default: SERVICE_WIN32_OWN_PROCESS # Valid options: # - :automatic # - :manual # - :disabled - # Reference: https://github.com/djberg96/win32-service/blob/ffi/lib/win32/windows/constants.rb#L49-L54 + # Reference: https://github.com/chef/win32-service/blob/ffi/lib/win32/windows/constants.rb#L49-L54 property :startup_type, [Symbol], equal_to: [:automatic, :manual, :disabled], default: :automatic, coerce: proc { |x| if x.is_a?(Integer) ALLOWED_START_TYPES.invert.fetch(x) do @@ -84,7 +84,7 @@ class Chef end } - # https://github.com/djberg96/win32-service/blob/ffi/lib/win32/windows/constants.rb#L43-L47 + # https://github.com/chef/win32-service/blob/ffi/lib/win32/windows/constants.rb#L43-L47 property :error_control, Integer, default: SERVICE_ERROR_NORMAL property :binary_path_name, String, |