Sha256: b5f82676351bce2891acbba158fe7a270a67667b549d30263ce6ff375ed24ab1
Contents?: true
Size: 1.26 KB
Versions: 14
Compression:
Stored size: 1.26 KB
Contents
#!/usr/bin/env bash if [[ ! -z "$rvm_trace_flag" ]] ; then set -x ; export rvm_trace_flag ; fi if [[ ! -z "$2" ]] ; then level=$1 ; shift ; else level="info" ; fi message=$1 if [[ -z "$rvm_interactive" ]] ; then case "$level" in debug) shift ; echo -e "\n$(tput setaf 5)<d>$(tput sgr0) $message $(tput setaf 5)</d> $(tput sgr0) \n" ;; info) shift ; echo -e "\n$(tput setaf 2)<i>$(tput sgr0) $message $(tput setaf 2)</i> $(tput sgr0) \n" ;; warn) shift ; echo -e "\n$(tput setaf 3)<w>$(tput sgr0) $message $(tput setaf 3)</w> $(tput sgr0) \n" ;; error) shift ; echo -e "\n$(tput setaf 1)<e>$(tput sgr0) $message $(tput setaf 1)</e> $(tput sgr0) \n" >&2 ;; fail) shift ; echo -e "\n$(tput setaf 1)<f>$(tput sgr0) $message $(tput setaf 1)</f> $(tput sgr0) \n" >&2 ;; *) echo -e "$message" esac else case "$level" in debug) shift ; echo -e "\n$(tput setaf 5)$message$(tput sgr0)\n" ;; info) shift ; echo -e "\n$(tput setaf 2)$message$(tput sgr0)\n" ;; warn) shift ; echo -e "\n$(tput setaf 3)$message$(tput sgr0)\n" ;; error) shift ; echo -e "\n$(tput setaf 1)$message$(tput sgr0)\n" >&2 ;; fail) shift ; echo -e "\n$(tput setaf 1)$message$(tput sgr0)\n" >&2 ;; *) echo -e "$message" esac fi exit 0
Version data entries
14 entries across 14 versions & 1 rubygems