Method: Chef::Resource::WindowsFeaturePowershell#to_formatted_array
- Defined in:
- lib/chef/resource/windows_feature_powershell.rb
#to_formatted_array(x) ⇒ Array
Converts strings of features into an Array. Array objects are lowercased
82 83 84 85 86 87 |
# File 'lib/chef/resource/windows_feature_powershell.rb', line 82 def to_formatted_array(x) x = x.split(/\s*,\s*/) if x.is_a?(String) # split multiple forms of a comma separated list # features aren't case sensitive so let's compare in lowercase x.map(&:downcase) end |