From 5dcd1fdf461a0cb5d99def4c73bd784eb1818676 Mon Sep 17 00:00:00 2001 From: uu59 Date: Wed, 4 Feb 2015 16:23:06 +0900 Subject: [PATCH] more human friendly name --- app/models/fluentd/agent/local_common.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/fluentd/agent/local_common.rb b/app/models/fluentd/agent/local_common.rb index 85e0aeb..5a98569 100644 --- a/app/models/fluentd/agent/local_common.rb +++ b/app/models/fluentd/agent/local_common.rb @@ -82,9 +82,9 @@ class Fluentd private - def exec_dryrun(exe, file_path = nil) + def exec_dryrun(command, file_path = nil) Bundler.with_clean_env do - system("#{exe} -q --dry-run #{options_to_argv(config_file: file_path)}", out: File::NULL, err: File::NULL) + system("#{command} -q --dry-run #{options_to_argv(config_file: file_path)}", out: File::NULL, err: File::NULL) raise ::Fluentd::Agent::ConfigError, last_error_message unless $?.exitstatus.zero? end end