diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-02-09 07:53:56 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-02-09 07:53:56 -0800 |
commit | f073747786abbe6ada55ed24b696a03e39c3c45d (patch) | |
tree | 7971d871e89d522a58291713761a6c83f68e8d19 /lib/chef/event_loggers | |
parent | c6e69783705cfd48bfea0c943dc071964dd21311 (diff) | |
download | chef-f073747786abbe6ada55ed24b696a03e39c3c45d.tar.gz |
auto fixing some rubocops
Style/NegatedWhile
Style/ParenthesesAroundCondition
Style/WhileUntilDo
Style/WordArray
Performance/ReverseEach
Style/ColonMethodCall
Diffstat (limited to 'lib/chef/event_loggers')
-rw-r--r-- | lib/chef/event_loggers/windows_eventlog.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/event_loggers/windows_eventlog.rb b/lib/chef/event_loggers/windows_eventlog.rb index 1d16b66087..514fc7b087 100644 --- a/lib/chef/event_loggers/windows_eventlog.rb +++ b/lib/chef/event_loggers/windows_eventlog.rb @@ -38,11 +38,11 @@ class Chef SOURCE = "Chef" def self.available? - return Chef::Platform::windows? + return Chef::Platform.windows? end def initialize - @eventlog = ::Win32::EventLog::open("Application") + @eventlog = ::Win32::EventLog.open("Application") end def run_start(version) @@ -83,7 +83,7 @@ class Chef [@run_status.run_id, @run_status.elapsed_time.to_s] else - ["UNKNOWN", "UNKNOWN"] + %w(UNKNOWN UNKNOWN) end @eventlog.report_event( |