diff options
Diffstat (limited to 'ext/win32-eventlog/Rakefile')
-rw-r--r-- | ext/win32-eventlog/Rakefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/win32-eventlog/Rakefile b/ext/win32-eventlog/Rakefile index 5b1186cf13..3bdf7f91d8 100644 --- a/ext/win32-eventlog/Rakefile +++ b/ext/win32-eventlog/Rakefile @@ -22,8 +22,8 @@ CC = "gcc" ensure_present [MC, RC, CC] -task :build => [EVT_RESOURCE_OBJECT, EVT_SHARED_OBJECT] -task :default => [:build, :register] +task build: [EVT_RESOURCE_OBJECT, EVT_SHARED_OBJECT] +task default: [:build, :register] file EVT_RC_FILE => EVT_MC_FILE do sh "#{MC} #{EVT_MC_FILE}" @@ -37,15 +37,15 @@ file EVT_SHARED_OBJECT => EVT_RESOURCE_OBJECT do sh "#{CC} -o #{EVT_SHARED_OBJECT} -shared #{EVT_RESOURCE_OBJECT}" end -task :register => EVT_SHARED_OBJECT do +task register: EVT_SHARED_OBJECT do require "win32/eventlog" dll_file = File.expand_path(EVT_SHARED_OBJECT) begin Win32::EventLog.add_event_source( - :source => "Application", - :key_name => "Chef", - :event_message_file => dll_file, - :category_message_file => dll_file + source: "Application", + key_name: "Chef", + event_message_file: dll_file, + category_message_file: dll_file ) rescue Errno::EIO => e puts "Skipping event log registration due to missing privileges: #{e}" |