summaryrefslogtreecommitdiff
path: root/lib/mixlib
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-12-29 17:02:13 -0800
committerGitHub <noreply@github.com>2019-12-29 17:02:13 -0800
commit1063d53051feea844252b2e3a90109fc6e2f5f93 (patch)
treed7730b8c1767baf0a333f4538f020625ca971d7b /lib/mixlib
parent534a4b88268cb049a4bda8c3d1250c8ac6968631 (diff)
parent65f4ab892926ee01cd5910d325e2306a82580232 (diff)
downloadmixlib-log-1063d53051feea844252b2e3a90109fc6e2f5f93.tar.gz
Merge pull request #59 from chef/relative
Substitute require for require_relative
Diffstat (limited to 'lib/mixlib')
-rw-r--r--lib/mixlib/log.rb10
-rw-r--r--lib/mixlib/log/child.rb2
-rw-r--r--lib/mixlib/log/logger.rb2
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/mixlib/log.rb b/lib/mixlib/log.rb
index d15663c..cfffb48 100644
--- a/lib/mixlib/log.rb
+++ b/lib/mixlib/log.rb
@@ -17,11 +17,11 @@
# limitations under the License.
require "logger"
-require "mixlib/log/version"
-require "mixlib/log/formatter"
-require "mixlib/log/child"
-require "mixlib/log/logging"
-require "mixlib/log/logger"
+require_relative "log/version"
+require_relative "log/formatter"
+require_relative "log/child"
+require_relative "log/logging"
+require_relative "log/logger"
module Mixlib
module Log
diff --git a/lib/mixlib/log/child.rb b/lib/mixlib/log/child.rb
index 2d7de00..2b82cea 100644
--- a/lib/mixlib/log/child.rb
+++ b/lib/mixlib/log/child.rb
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require "mixlib/log/logging"
+require_relative "logging"
module Mixlib
module Log
diff --git a/lib/mixlib/log/logger.rb b/lib/mixlib/log/logger.rb
index e1f8929..378c6b9 100644
--- a/lib/mixlib/log/logger.rb
+++ b/lib/mixlib/log/logger.rb
@@ -1,5 +1,5 @@
require "logger"
-require "mixlib/log/logging"
+require_relative "logging"
# A subclass of Ruby's stdlib Logger with all the mutex and logrotation stuff
# ripped out, and metadata added in.