bitnami-containers/.vib/ruby/goss/ruby.yaml

27 lines
739 B
YAML

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://bitnami.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