pkg_name=inspec pkg_origin=chef pkg_description="InSpec is an open-source testing framework for infrastructure with a human- and machine-readable language for specifying compliance, security and policy requirements." pkg_upstream_url=https://www.inspec.io/ pkg_maintainer="The Habitat Maintainers " pkg_license=('Apache-2.0') pkg_deps=( core/busybox-static core/cacerts core/coreutils core/libxml2 core/libxslt core/net-tools core/ruby ) pkg_build_deps=( core/bundler core/gcc core/make core/readline core/sed ) pkg_bin_dirs=(bin) pkg_version() { cat VERSION } do_before() { if [[ ! -f VERSION ]]; then exit_with "habitat/VERSION not found. Run 'rake release_habitat' to ensure it exists" 1 fi update_pkg_version } do_prepare() { # If we use the Gemfile in the project ($SRC_PATH/Gemfile), and run `bundle # install` (which we do in `do_build` below), Bundler will write out a # .bundle/config into the $SRC_PATH. If this happens, if you try to use # InSpec outside of the build process it will fail, since the settings used # in this plan will be saved in the .bundle/config. # # Instead, we build a minimal Gemfile in the $CACHE_PATH and bundle using that. cat > "$CACHE_PATH/Gemfile" <