Class: Buildkite::Builder::Extensions::Lib

Inherits:
Buildkite::Builder::Extension show all
Defined in:
lib/buildkite/builder/extensions/lib.rb

Instance Attribute Summary

Attributes inherited from Buildkite::Builder::Extension

#context, #options, #options_block

Instance Method Summary collapse

Methods inherited from Buildkite::Builder::Extension

#build, dsl, #initialize

Constructor Details

This class inherits a constructor from Buildkite::Builder::Extension

Instance Method Details

#prepareObject



5
6
7
8
9
10
11
# File 'lib/buildkite/builder/extensions/lib.rb', line 5

def prepare
  lib_dir = Buildkite::Builder.root.join(Buildkite::Builder::BUILDKITE_DIRECTORY_NAME, 'lib')

  if lib_dir.directory? && !$LOAD_PATH.include?(lib_dir)
    $LOAD_PATH.unshift(lib_dir)
  end
end