1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
7 # Set up gems listed in the Gemfile.
8 ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
10 require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
12 # Use ARVADOS_API_TOKEN environment variable (if set) in console
14 module ArvadosApiClientConsoleMode
15 class Railtie < Rails::Railtie
17 Thread.current[:arvados_api_token] ||= ENV['ARVADOS_API_TOKEN']