Sha256: d7307b80f4b65db9399bcdd79b8657183f3cecff36c57a84db5317a94a233ab2

Contents?: true

Size: 1.04 KB

Versions: 3

Compression:

Stored size: 1.04 KB

Contents

#!/usr/bin/env ruby

case
when File.exist?(file = File.join(__dir__, '../modules/rbbt-util/bin/rbbt'))
  $LOAD_PATH.unshift(lib_dir = File.join(file, '../..', 'lib'))
  require_relative File.join(lib_dir,'rbbt-util')
  Path.add_path(:rbbt, File.expand_path(File.join(File.dirname(lib_dir), "/{TOPLEVEL}/{SUBPATH}")))
  Path.default_pkgdir = Rbbt
  load file
when File.exist?(file = File.join(ENV["HOME"], 'git/scout-gear/modules/rbbt-util/bin/rbbt'))
  $LOAD_PATH.unshift(lib_dir = File.join(file, '../..', 'lib'))
  require_relative File.join(lib_dir,'rbbt-util')
  Path.add_path(:rbbt, File.expand_path(File.join(File.dirname(lib_dir), "/{TOPLEVEL}/{SUBPATH}")))
  Path.default_pkgdir = Rbbt
  load file
when File.exist?(file = File.join(ENV["HOME"], 'git/rbbt-util/bin/rbbt'))
  $LOAD_PATH.unshift(lib_dir = File.join(file, '../..', 'lib'))
  require_relative File.join(lib_dir,'rbbt-util')
  Path.add_path(:rbbt, File.expand_path(File.join(File.dirname(lib_dir), "/{TOPLEVEL}/{SUBPATH}")))
  Path.default_pkgdir = Rbbt
  load file
else
  raise "Can't find rbbt"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scout-gear-10.4.0 scout_commands/rbbt
scout-gear-10.3.0 scout_commands/rbbt
scout-gear-10.2.0 scout_commands/rbbt