diff options
author | Tim Smith <tsmith@chef.io> | 2018-03-04 20:15:36 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-03-04 20:19:03 -0800 |
commit | a96e2311e2bfb59b750ac11cb290cd17d02fef71 (patch) | |
tree | b682d37033587c76ed645c829b3f6c861914cb1a /lib/chef/resource/windows_printer.rb | |
parent | e0a14935df0c0dd34fdaa8d3228d5d83e4a7cfbd (diff) | |
download | chef-a96e2311e2bfb59b750ac11cb290cd17d02fef71.tar.gz |
Updates from the reviewmisc_resource
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/windows_printer.rb')
-rw-r--r-- | lib/chef/resource/windows_printer.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/chef/resource/windows_printer.rb b/lib/chef/resource/windows_printer.rb index c134e27bf7..3ad12e35c7 100644 --- a/lib/chef/resource/windows_printer.rb +++ b/lib/chef/resource/windows_printer.rb @@ -39,7 +39,7 @@ class Chef property :comment, String, description: "Optional descriptor for the printer queue." - property :default, [true, false], + property :default, [TrueClass, FalseClass], description: "Should this be the system's default printer.", default: false @@ -50,7 +50,7 @@ class Chef property :location, String, description: "Printer location, e.g. 'Fifth floor copy room'." - property :shared, [true, false], + property :shared, [TrueClass, FalseClass], description: "Should the printer be shared.", default: false @@ -62,7 +62,8 @@ class Chef validation_message: "The ipv4_address property must be in the IPv4 format of WWW.XXX.YYY.ZZZ", regex: Resolv::IPv4::Regex - property :exists, [true, false], desired_state: true + property :exists, [TrueClass, FalseClass], + desired_state: true PRINTERS_REG_KEY = 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\\'.freeze unless defined?(PRINTERS_REG_KEY) |