PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/highline-2.1.0/examples/ |
| Server: Linux server1.ngambekcore.com 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 04:00:07 EDT 2025 x86_64 IP: 159.198.77.92 |
| Dir : //opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/highline-2.1.0/examples/ansi_colors.rb |
#!/usr/bin/env ruby
# encoding: utf-8
# ansi_colors.rb
#
# Created by James Edward Gray II on 2005-05-03.
# Copyright 2005 Gray Productions. All rights reserved.
require "rubygems"
require "highline/import"
# Supported color sequences.
colors = %w[black red green yellow blue magenta cyan white]
# Using color() with symbols.
colors.each_with_index do |c, i|
say("This should be <%= color('#{c}', :#{c}) %>!")
say("This should be <%= color('#{colors[i - 1]} on #{c}', \
:#{colors[i - 1]}, :on_#{c} ) %>!")
end
# Using color with constants.
say("This should be <%= color('bold', BOLD) %>!")
say("This should be <%= color('underlined', UNDERLINE) %>!")
# Using constants only.
say("This might even <%= BLINK %>blink<%= CLEAR %>!")
# It even works with list wrapping.
erb_digits = %w[Zero One Two Three Four] +
["<%= color('Five', :blue) %%>"] +
%w[Six Seven Eight Nine]
say("<%= list(#{erb_digits.inspect}, :columns_down, 3) %>")