Skip to content

Commit

Permalink
( vs. { in arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
tas50 committed Oct 7, 2015
1 parent 94df9b7 commit 95069d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libraries/version.rb
Expand Up @@ -174,7 +174,7 @@ def initialize
end

# Server Type checks
%w{ core full datacenter }.each do |m|
%w( core full datacenter ).each do |m|
define_method("server_#{m}?") do
if @sku
!(SKU[@sku][:name] =~ /#{m}/i).nil?
Expand All @@ -194,7 +194,7 @@ def sm_serverr2

# query WMI Win32_OperatingSystem for required OS info
def get_os_info
cols = %w{ Version ProductType OSProductSuite OperatingSystemSKU ServicePackMajorVersion ServicePackMinorVersion }
cols = %w( Version ProductType OSProductSuite OperatingSystemSKU ServicePackMajorVersion ServicePackMinorVersion )
os_info = execute_wmi_query('select * from Win32_OperatingSystem').each.next
cols.map do |c|
begin
Expand Down
4 changes: 2 additions & 2 deletions recipes/default.rb
Expand Up @@ -19,15 +19,15 @@
#

# gems with precompiled binaries
%w{ win32-api win32-service }.each do |win_gem|
%w( win32-api win32-service ).each do |win_gem|
chef_gem win_gem do
options '--platform=mswin32'
action :install
end
end

# the rest
%w{ windows-api windows-pr win32-dir win32-event win32-mutex }.each do |win_gem|
%w( windows-api windows-pr win32-dir win32-event win32-mutex ).each do |win_gem|
chef_gem win_gem do
action :install
end
Expand Down

0 comments on commit 95069d2

Please sign in to comment.