summaryrefslogtreecommitdiff
path: root/lib/chef/provider.rb
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-01-14 14:08:03 +0000
committerThom May <thom@chef.io>2016-01-14 14:08:03 +0000
commit51cfbdc4d16739caac4d946fadbe678444aafe34 (patch)
tree56dfd8f1cd9fd933de27268b32402e955a43ac2b /lib/chef/provider.rb
parent05064423057d4cf46f4713b81b08829cf6d20af6 (diff)
downloadchef-51cfbdc4d16739caac4d946fadbe678444aafe34.tar.gz
Use double quotes by default
This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
Diffstat (limited to 'lib/chef/provider.rb')
-rw-r--r--lib/chef/provider.rb42
1 files changed, 21 insertions, 21 deletions
diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb
index 99e02844ac..4d99d316ca 100644
--- a/lib/chef/provider.rb
+++ b/lib/chef/provider.rb
@@ -17,22 +17,22 @@
# limitations under the License.
#
-require 'chef/mixin/from_file'
-require 'chef/mixin/convert_to_class_name'
-require 'chef/mixin/enforce_ownership_and_permissions'
-require 'chef/mixin/why_run'
-require 'chef/mixin/shell_out'
-require 'chef/mixin/powershell_out'
-require 'chef/mixin/provides'
-require 'chef/platform/service_helpers'
-require 'chef/node_map'
-require 'forwardable'
+require "chef/mixin/from_file"
+require "chef/mixin/convert_to_class_name"
+require "chef/mixin/enforce_ownership_and_permissions"
+require "chef/mixin/why_run"
+require "chef/mixin/shell_out"
+require "chef/mixin/powershell_out"
+require "chef/mixin/provides"
+require "chef/platform/service_helpers"
+require "chef/node_map"
+require "forwardable"
class Chef
class Provider
- require 'chef/mixin/why_run'
- require 'chef/mixin/shell_out'
- require 'chef/mixin/provides'
+ require "chef/mixin/why_run"
+ require "chef/mixin/shell_out"
+ require "chef/mixin/provides"
include Chef::Mixin::WhyRun
include Chef::Mixin::ShellOut
include Chef::Mixin::PowershellOut
@@ -217,7 +217,7 @@ class Chef
property_size = modified.map { |p| p.size }.max
modified.map! do |p|
properties_str = if sensitive
- '(suppressed sensitive property)'
+ "(suppressed sensitive property)"
else
"#{new_resource.send(p).inspect} (was #{current_resource.send(p).inspect})"
end
@@ -230,9 +230,9 @@ class Chef
# write down any properties we are setting.
property_size = properties.map { |p| p.size }.max
created = properties.map do |property|
- default = ' (default value)' unless new_resource.property_is_set?(property)
+ default = " (default value)" unless new_resource.property_is_set?(property)
properties_str = if sensitive
- '(suppressed sensitive property)'
+ "(suppressed sensitive property)"
else
new_resource.send(property).inspect
end
@@ -391,7 +391,7 @@ class Chef
end
end
- require 'chef/dsl/recipe'
+ require "chef/dsl/recipe"
include Chef::DSL::Recipe::FullDSL
end
@@ -455,7 +455,7 @@ class Chef
end
# Requiring things at the bottom breaks cycles
-require 'chef/chef_class'
-require 'chef/mixin/why_run'
-require 'chef/resource_collection'
-require 'chef/runner'
+require "chef/chef_class"
+require "chef/mixin/why_run"
+require "chef/resource_collection"
+require "chef/runner"