Skip to content

Commit 69ecc84

Browse files
committed
Cookstyle fixes
Signed-off-by: Tim Smith <[email protected]>
1 parent 11c6405 commit 69ecc84

14 files changed

+18
-18
lines changed

attributes/default.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Cookbook:: powershell
44
# Attribute:: default
55
#
6-
# Copyright:: 2014-2018, Chef Software, Inc.
6+
# Copyright:: 2014-2019, Chef Software, Inc.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License");
99
# you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@
1717
# See the License for the specific language governing permissions and
1818
# limitations under the License.
1919
#
20-
if node['platform_family'] == 'windows'
20+
if platform_family?('windows')
2121
# INSTALLATION_REBOOT_MODE = "no_reboot". It skips reboot required after powershell installation.
2222
# INSTALLATION_REBOOT_MODE = "immediate_reboot". Used for immediate node reboot after powershell installation.
2323
# INSTALLATION_REBOOT_MODE = "delayed_reboot". Used for node reboot after chef-client run.

attributes/powershell3.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Cookbook:: powershell
44
# Attribute:: powershell3
55
#
6-
# Copyright:: 2014-2018, Chef Software, Inc.
6+
# Copyright:: 2014-2019, Chef Software, Inc.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License");
99
# you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
1818
# limitations under the License.
1919
#
2020

21-
if node['platform_family'] == 'windows'
21+
if platform_family?('windows')
2222
case node['platform_version'].split('.')[0..1].join('.')
2323
when '6.1'
2424
case node['kernel']['machine']

attributes/powershell4.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Cookbook:: powershell
44
# Attribute:: powershell4
55
#
6-
# Copyright:: 2014-2018, Chef Software, Inc.
6+
# Copyright:: 2014-2019, Chef Software, Inc.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License");
99
# you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
1818
# limitations under the License.
1919
#
2020

21-
if node['platform_family'] == 'windows'
21+
if platform_family?('windows')
2222
case node['platform_version'].split('.')[0..1].join('.')
2323
when '6.1'
2424
case node['kernel']['machine']

attributes/powershell5.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Cookbook:: powershell
44
# Attribute:: powershell5
55
#
6-
# Copyright:: 2014-2018, Chef Software, Inc.
6+
# Copyright:: 2014-2019, Chef Software, Inc.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License");
99
# you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
1818
# limitations under the License.
1919
#
2020

21-
if node['platform_family'] == 'windows'
21+
if platform?('windows')
2222
default['powershell']['powershell5']['version'] = '5.1'
2323

2424
# Make sure .NET 4.5 (minimum) is available.

recipes/default.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Cookbook:: powershell
55
# Recipe:: default
66
#
7-
# Copyright:: 2011-2017, Chef Software, Inc.
7+
# Copyright:: 2011-2019, Chef Software, Inc.
88
#
99
# Licensed under the Apache License, Version 2.0 (the "License");
1010
# you may not use this file except in compliance with the License.

recipes/disable_lcm.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Cookbook:: powershell
44
# Recipe:: disable_lcm
55
#
6-
# Copyright:: 2015-2017, Chef Software, Inc.
6+
# Copyright:: 2015-2019, Chef Software, Inc.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License");
99
# you may not use this file except in compliance with the License.

recipes/dsc.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Cookbook:: powershell
44
# Recipe:: dsc
55
#
6-
# Copyright:: 2014-2018, Chef Software, Inc.
6+
# Copyright:: 2014-2019, Chef Software, Inc.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License");
99
# you may not use this file except in compliance with the License.

recipes/enable_dsc_script.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Cookbook:: powershell
44
# Recipe:: enable_lcm
55
#
6-
# Copyright:: 2015-2017, Chef Software, Inc.
6+
# Copyright:: 2015-2019, Chef Software, Inc.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License");
99
# you may not use this file except in compliance with the License.

recipes/enable_lcm.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Cookbook:: powershell
44
# Recipe:: enable_lcm
55
#
6-
# Copyright:: 2015-2017, Chef Software, Inc.
6+
# Copyright:: 2015-2019, Chef Software, Inc.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License");
99
# you may not use this file except in compliance with the License.

recipes/powershell2.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Cookbook:: powershell
44
# Recipe:: powershell2
55
#
6-
# Copyright:: 2014-2018, Chef Software, Inc.
6+
# Copyright:: 2014-2019, Chef Software, Inc.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License");
99
# you may not use this file except in compliance with the License.

recipes/powershell3.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Cookbook:: powershell
44
# Recipe:: powershell3
55
#
6-
# Copyright:: 2014-2018, Chef Software, Inc.
6+
# Copyright:: 2014-2019, Chef Software, Inc.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License");
99
# you may not use this file except in compliance with the License.

recipes/powershell4.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Cookbook:: powershell
44
# Recipe:: powershell4
55
#
6-
# Copyright:: 2014-2018, Chef Software, Inc.
6+
# Copyright:: 2014-2019, Chef Software, Inc.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License");
99
# you may not use this file except in compliance with the License.

recipes/powershell5.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Cookbook:: powershell
44
# Recipe:: powershell5
55
#
6-
# Copyright:: 2014-2018, Chef Software, Inc.
6+
# Copyright:: 2014-2019, Chef Software, Inc.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License");
99
# you may not use this file except in compliance with the License.

recipes/winrm.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Cookbook:: powershell
44
# Recipe:: winrm
55
#
6-
# Copyright:: 2014-2018, Chef Software, Inc.
6+
# Copyright:: 2014-2019, Chef Software, Inc.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License");
99
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)