Skip to content

Instantly share code, notes, and snippets.

@agraves
Last active December 14, 2015 12:28
Show Gist options
  • Save agraves/5086657 to your computer and use it in GitHub Desktop.
Save agraves/5086657 to your computer and use it in GitHub Desktop.
Gemfile
ruby '1.9.3'
def local_group(*g, &block)
on_heroku = (ENV['HOME'].gsub('/','') == 'app')
if on_heroku
group(:test, &block)
else
group(*g, &block)
end
end
# Built everywhere
gem 'rails'
# Excluded properly on Cedar
group :test do
gem 'foo'
end
# Cannot be excluded from Heroku...UNTIL NOW
local_group :custom do
gem 'bar'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment