diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-18 09:12:29 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-18 09:12:29 -0800 |
commit | 86643d99789002eca3f064f3450fe48dcd316753 (patch) | |
tree | 525ffeff996a1333a498d33821fe7257281a8337 /lib/chef/dsl | |
parent | ca084429991a141127c80e9d2a08cb1bb68585c4 (diff) | |
download | chef-86643d99789002eca3f064f3450fe48dcd316753.tar.gz |
Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimeters
See chef/chefstyle#11 for analysis and discussion. We select '{}' since
audit of our source code shows that is the most common, and that used to
be the dominant learning paradigm (e.g. in ruby 1.9 pickaxe book.
Diffstat (limited to 'lib/chef/dsl')
-rw-r--r-- | lib/chef/dsl/chef_provisioning.rb | 4 | ||||
-rw-r--r-- | lib/chef/dsl/cheffish.rb | 4 | ||||
-rw-r--r-- | lib/chef/dsl/recipe.rb | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/chef/dsl/chef_provisioning.rb b/lib/chef/dsl/chef_provisioning.rb index 35f175296b..27458dc04a 100644 --- a/lib/chef/dsl/chef_provisioning.rb +++ b/lib/chef/dsl/chef_provisioning.rb @@ -23,7 +23,7 @@ class Chef # require 'chef-provisioning' (which will define the actual method) and then call the # method chef-provisioning defined. module ChefProvisioning - %w( + %w{ add_machine_options current_image_options current_machine_options @@ -36,7 +36,7 @@ class Chef with_driver with_image_options with_machine_options - ).each do |method_name| + }.each do |method_name| eval(<<-EOM, binding, __FILE__, __LINE__+1) def #{method_name}(*args, &block) Chef::DSL::ChefProvisioning.load_chef_provisioning diff --git a/lib/chef/dsl/cheffish.rb b/lib/chef/dsl/cheffish.rb index 736ad52add..019dadd3f2 100644 --- a/lib/chef/dsl/cheffish.rb +++ b/lib/chef/dsl/cheffish.rb @@ -23,7 +23,7 @@ class Chef # require 'cheffish' (which will define the actual method) and then call the # method cheffish defined. module Cheffish - %w( + %w{ chef_acl chef_client chef_container @@ -43,7 +43,7 @@ class Chef with_chef_server with_chef_local_server get_private_key - ).each do |method_name| + }.each do |method_name| eval(<<-EOM, binding, __FILE__, __LINE__+1) def #{method_name}(*args, &block) Chef::DSL::Cheffish.load_cheffish diff --git a/lib/chef/dsl/recipe.rb b/lib/chef/dsl/recipe.rb index 8a25328023..5e39919158 100644 --- a/lib/chef/dsl/recipe.rb +++ b/lib/chef/dsl/recipe.rb @@ -51,9 +51,9 @@ class Chef def describe_self_for_error if respond_to?(:name) - %Q[`#{self.class} "#{name}"'] + %Q{`#{self.class} "#{name}"'} elsif respond_to?(:recipe_name) - %Q[`#{self.class} "#{recipe_name}"'] + %Q{`#{self.class} "#{recipe_name}"'} else to_s end |