File tree Expand file tree Collapse file tree 4 files changed +7
-111
lines changed
Expand file tree Collapse file tree 4 files changed +7
-111
lines changed Original file line number Diff line number Diff line change 2525require 'java_buildpack/component/mutable_java_home'
2626require 'java_buildpack/component/security_providers'
2727require 'java_buildpack/logging/logger_factory'
28- require 'java_buildpack/util/colorize'
2928require 'java_buildpack/util/configuration_utils'
3029require 'java_buildpack/util/constantize'
3130require '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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1616require 'fileutils'
1717require 'java_buildpack/component'
1818require 'java_buildpack/util/cache/application_cache'
19- require 'java_buildpack/util/colorize'
2019require 'java_buildpack/util/format_duration'
2120require 'java_buildpack/util/shell'
2221require '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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments