#!/opt/angry-omnibus-toolchain/bin/bash
#
# Copyright:: Copyright 2017 Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# This script is based off of https://gist.github.com/cosimo/3760587

###################################################################
# Load the base Omnibus environment
###################################################################
export PATH="/opt/angry-omnibus-toolchain/bin:$PATH"
export SSL_CERT_FILE="/opt/angry-omnibus-toolchain/embedded/ssl/certs/cacert.pem"

echo ""
echo ""
echo "========================================"
echo "= Environment Variables"
echo "========================================"
echo ""
echo "PATH=$PATH"
echo "SSL_CERT_FILE=$SSL_CERT_FILE"

###################################################################
# Query tool versions
###################################################################
echo ""
echo ""
echo "========================================"
echo "= Tool Versions"
echo "========================================"
echo ""
echo "Bash.........$(bash --version | head -1)"
echo "Bundler......$(bundle --version | head -1)"
echo "GCC..........$(gcc --version | head -1)"
echo "Git..........$(git --version | head -1)"
echo "Make.........$(make --version | head -1)"
echo "Ruby.........$(ruby --version | head -1)"
echo "RubyGems.....$(gem --version | head -1)"
echo ""
echo "========================================"
