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/log | |
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/log')
-rw-r--r-- | lib/chef/log/syslog.rb | 8 | ||||
-rw-r--r-- | lib/chef/log/winevt.rb | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/chef/log/syslog.rb b/lib/chef/log/syslog.rb index 0c8190797f..2106130b26 100644 --- a/lib/chef/log/syslog.rb +++ b/lib/chef/log/syslog.rb @@ -16,9 +16,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -require 'logger' -require 'syslog-logger' -require 'chef/mixin/unformatter' +require "logger" +require "syslog-logger" +require "chef/mixin/unformatter" class Chef class Log @@ -32,7 +32,7 @@ class Chef attr_accessor :sync, :formatter - def initialize(program_name = 'chef-client', facility = ::Syslog::LOG_DAEMON, logopts=nil) + def initialize(program_name = "chef-client", facility = ::Syslog::LOG_DAEMON, logopts=nil) super return if defined? ::Logger::Syslog::SYSLOG ::Logger::Syslog.const_set :SYSLOG, SYSLOG diff --git a/lib/chef/log/winevt.rb b/lib/chef/log/winevt.rb index 84ae80b634..53127877e1 100644 --- a/lib/chef/log/winevt.rb +++ b/lib/chef/log/winevt.rb @@ -16,9 +16,9 @@ # limitations under the License. # -require 'chef/event_loggers/base' -require 'chef/platform/query_helpers' -require 'chef/mixin/unformatter' +require "chef/event_loggers/base" +require "chef/platform/query_helpers" +require "chef/mixin/unformatter" class Chef class Log @@ -36,14 +36,14 @@ class Chef FATAL_EVENT_ID = 10104 # Since we must install the event logger, this is not really configurable - SOURCE = 'Chef' + SOURCE = "Chef" include Chef::Mixin::Unformatter attr_accessor :sync, :formatter, :level def initialize(eventlog=nil) - @eventlog = eventlog || ::Win32::EventLog::open('Application') + @eventlog = eventlog || ::Win32::EventLog::open("Application") end def close |