Skip to content

Commit

Permalink
fix/made abort message more informative and add byebug to staging env
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleypliu committed Jan 29, 2021
1 parent af6bf96 commit b18a609
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@ group :test, :development do
gem 'ejs'
# gem 'minitest', '5.10.3' # Explicit minitest version fixes test reporting errors
gem 'minitest', '~> 5.10', '!= 5.10.2'
gem 'byebug', '~> 9.0', '>= 9.0.5'


end

group :test, :development, :staging do
gem 'byebug', '~> 9.0', '>= 9.0.5'
end


Expand Down
4 changes: 2 additions & 2 deletions lib/tasks/cache.rake
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
namespace :cache do
desc "Clear the Rails cache (everything except downloads which is handled by Redis)"
task :clear do
task clear: do
logger = Logger.new(STDOUT)

logger.info "Clearing cache..."

abort('Rails cache is nil') if Rails.cache.nil?
abort('Aborting: Rails cache is nil') if Rails.cache.nil?
Rails.cache.clear

logger.info "Done."
Expand Down

0 comments on commit b18a609

Please sign in to comment.