Sha256: 34ce0007d72d38ef76773cac598d03d474ef38303b2fee179905645b48146baa

Contents?: true

Size: 1.33 KB

Versions: 125

Compression:

Stored size: 1.33 KB

Contents

#!/usr/bin/env bash
detect_system() {
  # refer to https://github.com/wayneeseguin/rvm/blob/master/scripts/functions/utility_system
  unset  _system_info _system_lib_type
  export _system_info _system_lib_type
  _system_info="$(command uname -a)"
  _system_lib_type="unknown"
  case "$(command uname)" in
    (Linux|GNU*)
      if [[ -f /etc/lsb-release ]]; then
        _system_lib_type="debian"
      elif [[ -f /etc/debian_version ]]; then
        _system_lib_type="debian"
      elif [[ -f /etc/os-release ]]; then
        _system_lib_type="debian"
      elif [[ -f /etc/system-release ]]; then
        _system_lib_type="centos"
      elif [[ -f /etc/centos-release ]]; then
        _system_lib_type="centos"
      elif [[ -f /etc/redhat-release ]]; then
        _system_lib_type="centos"
      fi
      ;;
    #(Darwin)
    #  _system_lib_type="osx"
    #  ;;
    (*)
      ;;
  esac
}

log_server_details()
{
  echo "Logging ip address"
  ip addr show

  echo "Logging ulimit and uname"
  ulimit -a
  uname -a

  echo "Logging repo details"
  detect_system
  if [ "${_system_lib_type}" = "debian" ]; then
    grep -RoPish --include="*.list" "(?<=^deb\s).*?(?=#|$)" /etc/apt
  else
    yum repolist all
  fi

  echo "Logging release details"
  cat /etc/*-release

  echo "Logging flydata versions"
  gem list flydata
  flydata version
}

log_server_details

Version data entries

125 entries across 125 versions & 1 rubygems

Version Path
flydata-0.8.10.2 bin/serverinfo
flydata-0.8.10.1 bin/serverinfo
flydata-0.8.9.11 bin/serverinfo
flydata-0.8.10 bin/serverinfo
flydata-0.8.9 bin/serverinfo
flydata-0.8.8 bin/serverinfo
flydata-0.8.7 bin/serverinfo
flydata-0.8.6 bin/serverinfo
flydata-0.8.5 bin/serverinfo
flydata-0.8.4 bin/serverinfo
flydata-0.8.3 bin/serverinfo
flydata-0.8.2 bin/serverinfo
flydata-0.8.1 bin/serverinfo
flydata-0.8.0 bin/serverinfo
flydata-0.7.19 bin/serverinfo
flydata-0.7.18 bin/serverinfo
flydata-0.7.17 bin/serverinfo
flydata-0.7.16 bin/serverinfo
flydata-0.7.15 bin/serverinfo
flydata-0.7.14 bin/serverinfo