# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 command: check-installed-gems: exec: gem list --local exit-status: 0 stdout: {{ range $module := .Vars.modules }} - "{{ $module }}" {{ end }} check-ssl: exec: ruby -rnet/https -e "Net::HTTP.get URI('https://google.com')" exit-status: 0 {{ range $flag := .Vars.flags }} check-{{ $flag }}: exit-status: 0 exec: grep -r {{ $flag }} /opt/bitnami/ruby/include/ stdout: - "config.h" {{ end }} check-bundle: exec: cd /tmp && echo "source 'https://rubygems.org'" > Gemfile && bundle exit-status: 0 check-rake-task: exec: echo "task :test do; puts 'Hello VIB'; end" > /tmp/test-rake.rb && rake -f /tmp/test-rake.rb test exit-status: 0 stdout: - "Hello VIB"