Sha256: 44a7a28c2be0e8e4396ff51b3e169b5e5bd7d7657e40c72e3dfb6e7bb5d0735b

Contents?: true

Size: 366 Bytes

Versions: 41

Compression:

Stored size: 366 Bytes

Contents

module Buildkite
  module Builder
    module Extensions
      class Lib < Extension
        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
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
buildkite-builder-2.2.0 lib/buildkite/builder/extensions/lib.rb