Sha256: b249dbbb510b8366249e5d03e0fb32fcc59a43c0eef58d22912697ded2d63850

Contents?: true

Size: 682 Bytes

Versions: 8

Compression:

Stored size: 682 Bytes

Contents

#!/usr/local/td/ruby/bin/ruby
# -*- coding: utf-8 -*-

# avoid conflicts with rvm
ENV.delete 'GEM_HOME'
ENV.delete 'GEM_PATH'

# attempt to load rubygems
begin
  require "rubygems"
rescue LoadError
end

# resolve bin path, ignoring symlinks
require "pathname"
here = File.dirname(Pathname.new(__FILE__).realpath)

# add locally installed gems to libpath
gem_dir = File.expand_path("../vendor/gems", here)
Dir["#{gem_dir}/**/lib"].each do |libdir|
  $:.unshift libdir
end

# inject any code in ~/.td/updated/vendor/gems over top
require 'td/updater'
TreasureData::Updater.inject_libpath

# start up the CLI
require 'td/command/runner'
exit TreasureData::Command::Runner.new.run ARGV

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
td-0.11.8 dist/resources/pkg/td
td-0.11.7 dist/resources/pkg/td
td-0.11.6 dist/resources/pkg/td
td-0.11.5 dist/resources/pkg/td
td-0.11.4 dist/resources/pkg/td
td-0.11.3 dist/resources/pkg/td
td-0.11.2 dist/resources/pkg/td
td-0.11.1 dist/resources/pkg/td