mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
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:
parent
fcb3880852
commit
4788693749
4 changed files with 39 additions and 111 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue