summaryrefslogtreecommitdiff
path: root/lib/chef/mixin/powershell_type_coercions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/mixin/powershell_type_coercions.rb')
-rw-r--r--lib/chef/mixin/powershell_type_coercions.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/mixin/powershell_type_coercions.rb b/lib/chef/mixin/powershell_type_coercions.rb
index 75b3276c84..728e5a64b1 100644
--- a/lib/chef/mixin/powershell_type_coercions.rb
+++ b/lib/chef/mixin/powershell_type_coercions.rb
@@ -25,8 +25,8 @@ class Chef
@type_coercions ||= {
Fixnum => { :type => lambda { |x| x.to_s }},
Float => { :type => lambda { |x| x.to_s }},
- FalseClass => { :type => lambda { |x| '$false' }},
- TrueClass => { :type => lambda { |x| '$true' }},
+ FalseClass => { :type => lambda { |x| "$false" }},
+ TrueClass => { :type => lambda { |x| "$true" }},
Hash => {:type => Proc.new { |x| translate_hash(x)}},
Array => {:type => Proc.new { |x| translate_array(x)}}
}
@@ -61,7 +61,7 @@ class Chef
end
def unsafe?(s)
- ["'", '#', '`', '"'].any? do |x|
+ ["'", '#', "`", '"'].any? do |x|
s.include? x
end
end