mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-25 21:28:40 -05:00
(DIO-2700) Vmfloaty should not use the Colorize gem
removing cosmetic use of colorize
This commit is contained in:
parent
1b64ce3b03
commit
6b9b4ea626
5 changed files with 6 additions and 8 deletions
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
require 'rubygems'
|
||||
require 'commander'
|
||||
require 'colorize'
|
||||
require 'json'
|
||||
require 'pp'
|
||||
require 'uri'
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ class Utils
|
|||
metadata = [host_data['state'], host_data['template'], duration, *tag_pairs]
|
||||
message = "- #{hostname}.#{host_data['domain']} (#{metadata.join(', ')})".gsub(/^/, ' ' * indent)
|
||||
if host_data['state'] && host_data['state'] == 'destroyed'
|
||||
output_target.puts message.colorize(:red)
|
||||
output_target.puts "- DESTROYED #{hostname}.#{host_data['domain']}".gsub(/^/, ' ' * indent)
|
||||
else
|
||||
output_target.puts message
|
||||
end
|
||||
|
|
@ -201,7 +201,7 @@ class Utils
|
|||
rescue StandardError => e
|
||||
FloatyLogger.error "#{name.ljust(width)} #{e.red}"
|
||||
end
|
||||
puts message.colorize(status_response['status']['ok'] ? :default : :red)
|
||||
puts message
|
||||
when 'NonstandardPooler'
|
||||
pools = status_response
|
||||
pools.delete 'ok'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class Vmfloaty
|
||||
VERSION = '1.5.0'
|
||||
VERSION = '1.6.0'
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue