Skip to content

Commit c09cb38

Browse files
committed
Revert "Colorize Output"
This reverts commit 7a7b3af.
1 parent 8a1f8b5 commit c09cb38

File tree

4 files changed

+7
-111
lines changed

4 files changed

+7
-111
lines changed

lib/java_buildpack/buildpack.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
require 'java_buildpack/component/mutable_java_home'
2626
require 'java_buildpack/component/security_providers'
2727
require 'java_buildpack/logging/logger_factory'
28-
require 'java_buildpack/util/colorize'
2928
require 'java_buildpack/util/configuration_utils'
3029
require 'java_buildpack/util/constantize'
3130
require 'java_buildpack/util/snake_case'
@@ -101,7 +100,7 @@ def release
101100

102101
private
103102

104-
BUILDPACK_MESSAGE = "#{'----->'.red.bold} #{'Java Buildpack'.blue.bold} %s".freeze
103+
BUILDPACK_MESSAGE = '-----> Java Buildpack Version: %s'.freeze
105104

106105
LOAD_ROOT = (Pathname.new(__FILE__).dirname + '..').freeze
107106

lib/java_buildpack/buildpack_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ def to_hash
8383
# @return [String] a +String+ representation of the version
8484
def to_s(human_readable = true)
8585
s = []
86-
s << @version.blue if @version
87-
s << (human_readable ? '(offline)'.blue : 'offline') if @offline
86+
s << @version if @version
87+
s << (human_readable ? '(offline)' : 'offline') if @offline
8888

8989
if remote_string
9090
s << '|' if @version && human_readable
9191
s << remote_string
9292
end
9393

94-
s << 'unknown'.yellow if s.empty?
94+
s << 'unknown' if s.empty?
9595
s.join(human_readable ? ' ' : '-')
9696
end
9797

lib/java_buildpack/component/base_component.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
require 'fileutils'
1717
require 'java_buildpack/component'
1818
require 'java_buildpack/util/cache/application_cache'
19-
require 'java_buildpack/util/colorize'
2019
require 'java_buildpack/util/format_duration'
2120
require 'java_buildpack/util/shell'
2221
require 'java_buildpack/util/space_case'
@@ -87,10 +86,10 @@ def release
8786
# @return [Void]
8887
def download(version, uri, name = @component_name)
8988
download_start_time = Time.now
90-
print "#{'----->'.red.bold} Downloading #{name.blue.bold} #{version.to_s.blue} from #{uri.sanitize_uri} "
89+
print "-----> Downloading #{name} #{version} from #{uri.sanitize_uri} "
9190

9291
JavaBuildpack::Util::Cache::ApplicationCache.new.get(uri) do |file, downloaded|
93-
puts downloaded ? "(#{(Time.now - download_start_time).duration})".green.italic : '(found in cache)'.green.italic
92+
puts downloaded ? "(#{(Time.now - download_start_time).duration})" : '(found in cache)'
9493
yield file
9594
end
9695
end
@@ -168,7 +167,7 @@ def with_timing(caption)
168167

169168
yield
170169

171-
puts "(#{(Time.now - start_time).duration})".green.italic
170+
puts "(#{(Time.now - start_time).duration})"
172171
end
173172

174173
private

lib/java_buildpack/util/colorize.rb

Lines changed: 0 additions & 102 deletions
This file was deleted.

0 commit comments

Comments
 (0)