fnichol/knife-server

View on GitHub
lib/chef/knife/bootstrap/_common.sh

Summary

Maintainability
Test Coverage
#
# Partial: _common.sh
#
# Common functions used by the rest of the program.
#

banner()  { echo "-----> $*" ; }
info()    { echo "       $*" ; }
warn()    { echo ">>>>>> $*" >&2 ; }

report_bug() {
  warn "Please file a bug report at https://github.com/fnichol/knife-server/issues"
  warn " "
  warn "Please detail your operating system, version and any other relevant details"
  echo
}

exists() {
  if command -v $1 &>/dev/null
  then
    return 0
  else
    return 1
  fi
}