diff --git a/bin/kitchen_gem b/bin/kitchen_gem new file mode 100644 index 000000000..7bd3d4592 --- /dev/null +++ b/bin/kitchen_gem @@ -0,0 +1,12 @@ +#!/bin/bash + +# expected to be invoked as kitchen install-gem +export GEM_HOME="/hab/kitchen" +env_version=$KITCHEN_VERSION + +if [[ -z "$env_version" ]]; then +# it will install the latest version if a new version installed unless the version env variable was set + hab pkg exec $origin/$package gem install -- $@ +else + hab pkg exec $origin/$package/$env_version gem install -- $@ +fi \ No newline at end of file