Sha256: 60e6cf4ba4d4921829e054c36dffba127e2d752fbb53e052b17dde5940f5fe1c
Contents?: true
Size: 680 Bytes
Versions: 2
Compression:
Stored size: 680 Bytes
Contents
require_relative 'puppet-repl/cli' require_relative 'version' require 'awesome_print' require_relative 'awesome_print/ext/awesome_puppet' # monkey patch in some color effects string methods class String def red; "\033[31m#{self}\033[0m" end def green; "\033[32m#{self}\033[0m" end def cyan; "\033[36m#{self}\033[0m" end def yellow; "\033[33m#{self}\033[0m" end def warning; yellow end def fatal; red end def info; green end def camel_case return self if self !~ /_/ && self =~ /[A-Z]+.*/ split('_').map(&:capitalize).join end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppet-repl-0.1.0 | lib/puppet-repl.rb |
puppet-repl-0.0.8 | lib/puppet-repl.rb |