3 # Set up gems listed in the Gemfile.
4 ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
6 require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
8 # Use ARVADOS_API_TOKEN environment variable (if set) in console
10 module ArvadosApiClientConsoleMode
11 class Railtie < Rails::Railtie
13 Thread.current[:arvados_api_token] ||= ENV['ARVADOS_API_TOKEN']