summaryrefslogtreecommitdiff
path: root/lib/chef/resource/windows_printer_port.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/windows_printer_port.rb')
-rw-r--r--lib/chef/resource/windows_printer_port.rb28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/chef/resource/windows_printer_port.rb b/lib/chef/resource/windows_printer_port.rb
index a31c49d734..cd1a5f55c2 100644
--- a/lib/chef/resource/windows_printer_port.rb
+++ b/lib/chef/resource/windows_printer_port.rb
@@ -31,32 +31,32 @@ class Chef
introduced "14.0"
property :ipv4_address, String,
- name_property: true,
- regex: Resolv::IPv4::Regex,
- validation_message: "The ipv4_address property must be in the format of WWW.XXX.YYY.ZZZ!",
- description: "An optional property for the IPv4 address of the printer if it differs from the resource block's name."
+ name_property: true,
+ regex: Resolv::IPv4::Regex,
+ validation_message: "The ipv4_address property must be in the format of WWW.XXX.YYY.ZZZ!",
+ description: "An optional property for the IPv4 address of the printer if it differs from the resource block's name."
property :port_name, String,
- description: "The port name."
+ description: "The port name."
property :port_number, Integer,
- description: "The port number.",
- default: 9100
+ description: "The port number.",
+ default: 9100
property :port_description, String,
- description: "The description of the port."
+ description: "The description of the port."
property :snmp_enabled, [TrueClass, FalseClass],
- description: "Determines if SNMP is enabled on the port.",
- default: false
+ description: "Determines if SNMP is enabled on the port.",
+ default: false
property :port_protocol, Integer,
- description: "The printer port protocol: 1 (RAW) or 2 (LPR).",
- validation_message: "port_protocol must be either 1 for RAW or 2 for LPR!",
- default: 1, equal_to: [1, 2]
+ description: "The printer port protocol: 1 (RAW) or 2 (LPR).",
+ validation_message: "port_protocol must be either 1 for RAW or 2 for LPR!",
+ default: 1, equal_to: [1, 2]
property :exists, [TrueClass, FalseClass],
- skip_docs: true
+ skip_docs: true
PORTS_REG_KEY = 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\\'.freeze unless defined?(PORTS_REG_KEY)