From dd3f56b6002f446cd29384bdf9e72fc8a76d6e33 Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Tue, 16 Jan 2018 14:18:34 +0900 Subject: [PATCH] Move fileutils require directive into near needed place --- bin/fluent-ca-generate | 1 - lib/fluent/command/ca_generate.rb | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/fluent-ca-generate b/bin/fluent-ca-generate index c2d80c546f..6037c7fce3 100755 --- a/bin/fluent-ca-generate +++ b/bin/fluent-ca-generate @@ -1,7 +1,6 @@ #!/usr/bin/env ruby $LOAD_PATH.unshift(File.join(__dir__, 'lib')) -require 'fileutils' require 'fluent/command/ca_generate' Fluent::CaGenerate.new.call diff --git a/lib/fluent/command/ca_generate.rb b/lib/fluent/command/ca_generate.rb index c805ba7483..74b67afc3f 100644 --- a/lib/fluent/command/ca_generate.rb +++ b/lib/fluent/command/ca_generate.rb @@ -1,5 +1,6 @@ require 'openssl' require 'optparse' +require 'fileutils' module Fluent class CaGenerate