Merge pull request #177 from glennsarti/ticket/maint/update-pooler-dev

(maint) Enhance VM Pooler developer experience
This commit is contained in:
Rick Sherman 2017-02-09 14:38:39 -06:00 committed by GitHub
commit 71a5af9e88
3 changed files with 21 additions and 0 deletions

4
.gitignore vendored
View file

@ -1,3 +1,7 @@
.ruby-version
Gemfile.lock
Gemfile.local
vendor
vmpooler.yaml
.bundle
coverage

10
Gemfile
View file

@ -23,3 +23,13 @@ group :test do
gem 'simplecov', '>= 0.11.2'
gem 'yarjuf', '>= 2.0'
end
# Evaluate Gemfile.local if it exists
if File.exists? "#{__FILE__}.local"
instance_eval(File.read("#{__FILE__}.local"))
end
# Evaluate ~/.gemfile if it exists
if File.exists?(File.join(Dir.home, '.gemfile'))
instance_eval(File.read(File.join(Dir.home, '.gemfile')))
end

View file

@ -26,4 +26,11 @@ manager = Thread.new {
).execute!
}
if ENV['VMPOOLER_DEBUG']
trap("INT") {
puts "Shutting down."
[api, manager].each { |t| t.exit }
}
end
[api, manager].each { |t| t.join }