more human friendly name

This commit is contained in:
uu59 2015-02-04 16:23:06 +09:00
parent 8dc2be80ef
commit 5dcd1fdf46

View File

@ -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