Update gemspec in preparation for vmpooler release

This commit updates gemspec and Gemfile in preparation of a vmpooler release. To support this change the vmpooler executable is placed into a bin directory for inclusion in the gem. The license in gemspec is updated to Apache 2.0 to reflect the vmpooler project license.
This commit is contained in:
kirby@puppetlabs.com 2018-07-13 09:31:42 -07:00
parent fcb3880852
commit 4788693749
4 changed files with 39 additions and 111 deletions

View file

@ -1,6 +1,9 @@
#!/usr/bin/env ruby
require 'vmpooler'
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rubygems' unless defined?(Gem)
require 'lib/vmpooler'
config = Vmpooler.config
redis_host = config[:redis]['server']
@ -43,7 +46,7 @@ if torun.include? 'manager'
torun_threads << manager
end
if ENV['VMPOOLER_DEBUG'] || torun_threads.count == 2
if ENV['VMPOOLER_DEBUG']
trap('INT') do
puts 'Shutting down.'
torun_threads.each(&:exit)