OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/modules/bim_seeder/bin/rails

26 lines
850 B

#!/usr/bin/env ruby
# This command will automatically be run when you run "rails" with Rails gems
# installed from the root of your application.
ENGINE_ROOT = File.expand_path('../..', __FILE__)
ENGINE_PATH = File.expand_path('../../lib/open_project/bim_seeder/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'])
##
# This is not ideal but better than nothing.
if ENV['OPENPROJECT_ROOT']
# /Users/mkahl/dev/openproject/release/lib
path = Pathname(ENV["OPENPROJECT_ROOT"]).join("lib")
$LOAD_PATH.unshift(path.to_s)
else
puts
puts "Error: please define OPENPROJECT_ROOT pointing to your OpenProject core's root directory"
puts
Kernel.exit(1)
end
require 'rails/all'
require 'rails/engine/commands'