From 2d5b1b8e8d2640c83185736ed248f2d7c5976c62 Mon Sep 17 00:00:00 2001 From: David Davis Date: Fri, 13 May 2016 13:13:36 -0400 Subject: [PATCH] Fixes #15035 - Adding rails script to katello (#6045) --- bin/rails | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/rails diff --git a/bin/rails b/bin/rails new file mode 100755 index 00000000000..f31be01b82a --- /dev/null +++ b/bin/rails @@ -0,0 +1,12 @@ +#!/usr/bin/env ruby +# This command will automatically be run when you run "rails" with Rails 4 gems installed from the root of your application. + +ENGINE_ROOT = File.expand_path('../..', __FILE__) +ENGINE_PATH = File.expand_path('../../lib/katello/engine', __FILE__) + +# Set up gems listed in the Gemfile. +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) +require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) + +require 'rails/all' +require 'rails/engine/commands'