Skip to content

Instantly share code, notes, and snippets.

@hone
Created June 22, 2010 21:07
Show Gist options
  • Save hone/449085 to your computer and use it in GitHub Desktop.
Save hone/449085 to your computer and use it in GitHub Desktop.
source "http://rubygems.org"
gem "sinatra"
unless ENV.has_key?('SSH_CLIENT')
group :development do
gem "mongrel"
end
end
@wuputah
Copy link

wuputah commented Jul 28, 2010

You can also use if ENV['USER'] =~ /repo\d+/, e.g. if you are deploying from within an ssh session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment