Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #92 from dpn-admin/app_version_tasks-suppress-load…
Browse files Browse the repository at this point in the history
…-failure

Rakefile - suppress failure to load app_version_tasks in production
  • Loading branch information
smutniak authored Sep 30, 2016
2 parents 5b1eda8 + 4e6e317 commit d3257db
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ require File.expand_path('../config/application', __FILE__)

Rails.application.load_tasks

# From https://github.com/sul-dlss/app_version_tasks
# A default configuration works for this application.
spec = Gem::Specification.find_by_name 'app_version_tasks'
load "#{spec.gem_dir}/lib/tasks/app_version_tasks.rake"
require 'app_version_tasks'
begin
# From https://github.com/sul-dlss/app_version_tasks
# A default configuration works for this application.
spec = Gem::Specification.find_by_name 'app_version_tasks'
load "#{spec.gem_dir}/lib/tasks/app_version_tasks.rake"
require 'app_version_tasks'
rescue Gem::LoadError
end

0 comments on commit d3257db

Please sign in to comment.