diff options
author | Thom May <thom@chef.io> | 2016-01-14 14:08:03 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2016-01-14 14:08:03 +0000 |
commit | 51cfbdc4d16739caac4d946fadbe678444aafe34 (patch) | |
tree | 56dfd8f1cd9fd933de27268b32402e955a43ac2b /lib/chef/node.rb | |
parent | 05064423057d4cf46f4713b81b08829cf6d20af6 (diff) | |
download | chef-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/node.rb')
-rw-r--r-- | lib/chef/node.rb | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/lib/chef/node.rb b/lib/chef/node.rb index e2f3ec4fc0..d7b0bf5948 100644 --- a/lib/chef/node.rb +++ b/lib/chef/node.rb @@ -18,22 +18,22 @@ # limitations under the License. # -require 'forwardable' -require 'chef/config' -require 'chef/nil_argument' -require 'chef/mixin/params_validate' -require 'chef/mixin/from_file' -require 'chef/mixin/deep_merge' -require 'chef/dsl/include_attribute' -require 'chef/dsl/platform_introspection' -require 'chef/environment' -require 'chef/server_api' -require 'chef/run_list' -require 'chef/node/attribute' -require 'chef/mash' -require 'chef/json_compat' -require 'chef/search/query' -require 'chef/whitelist' +require "forwardable" +require "chef/config" +require "chef/nil_argument" +require "chef/mixin/params_validate" +require "chef/mixin/from_file" +require "chef/mixin/deep_merge" +require "chef/dsl/include_attribute" +require "chef/dsl/platform_introspection" +require "chef/environment" +require "chef/server_api" +require "chef/run_list" +require "chef/node/attribute" +require "chef/mash" +require "chef/json_compat" +require "chef/search/query" +require "chef/whitelist" class Chef class Node @@ -69,7 +69,7 @@ class Chef @chef_server_rest = chef_server_rest @name = nil - @chef_environment = '_default' + @chef_environment = "_default" @primary_runlist = Chef::RunList.new @override_runlist = Chef::RunList.new @@ -433,7 +433,7 @@ class Chef # run_list is mutated? Or perhaps do something smarter like # on-demand generation of default_attrs and override_attrs, # invalidated only when run_list is mutated? - def expand!(data_source = 'server') + def expand!(data_source = "server") expansion = run_list.expand(chef_environment, data_source) raise Chef::Exceptions::MissingRole, expansion if expansion.errors? @@ -500,7 +500,7 @@ class Chef result = { "name" => name, "chef_environment" => chef_environment, - 'json_class' => self.class.name, + "json_class" => self.class.name, "automatic" => attributes.automatic, "normal" => attributes.normal, "chef_type" => "node", @@ -586,7 +586,7 @@ class Chef def self.find_or_create(node_name) load(node_name) rescue Net::HTTPServerException => e - raise unless e.response.code == '404' + raise unless e.response.code == "404" node = build(node_name) node.create end |