instiki/vendor/plugins/bundler/gems/bundler-1.0.0/bin/bundle
Jacques Distler 4bf2e0d944 Bundler
Remove the vendored sqlite3-ruby.
Instead, add support for Bundler
(which is vendored).

Before running the new Instiki,
do a 

   ruby bundle

which will install all of the needed gems
locally. (If you need to, tweak the contents
of Gemfile.)
2010-09-24 22:36:30 -05:00

22 lines
536 B
Ruby
Executable file

#!/usr/bin/env ruby
# Check if an older version of bundler is installed
require 'bundler'
$:.each do |path|
if path =~ %r'/bundler-0.(\d+)' && $1.to_i < 9
abort "Please remove older versions of bundler. This can be done by running `gem cleanup bundler`."
end
end
require 'bundler/cli'
begin
Bundler::CLI.start
rescue Bundler::BundlerError => e
Bundler.ui.error e.message
Bundler.ui.error e.backtrace.join("\n") if ENV["BUNDLE_DEBUG"]
exit e.status_code
rescue Interrupt
Bundler.ui.error "\nQuitting..."
exit 1
end