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.6.8 bin/serverinfo
flydata-0.6.7 bin/serverinfo
flydata-0.6.6 bin/serverinfo
flydata-0.6.5 bin/serverinfo
flydata-0.6.4 bin/serverinfo
flydata-0.6.3 bin/serverinfo
flydata-0.6.2 bin/serverinfo
flydata-0.6.1 bin/serverinfo
flydata-0.6.0 bin/serverinfo
flydata-0.5.21 bin/serverinfo
flydata-0.5.20 bin/serverinfo
flydata-0.5.17 bin/serverinfo
flydata-0.5.16 bin/serverinfo
flydata-0.5.15 bin/serverinfo
flydata-0.5.14 bin/serverinfo
flydata-0.5.13 bin/serverinfo
flydata-0.5.12 bin/serverinfo
flydata-0.5.11 bin/serverinfo
flydata-0.5.10 bin/serverinfo
flydata-0.5.9 bin/serverinfo