Skip to content

Commit

Permalink
Merge pull request #318 from bastelfreak/cleanup5
Browse files Browse the repository at this point in the history
get_facts.sh: Drop support for systems with Ruby 2.2
  • Loading branch information
bastelfreak authored May 14, 2024
2 parents ecf178e + a0bdd16 commit 75f18d1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions facts/get_facts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,9 @@ hardwaremodel=$(facter hardwaremodel)

PATH=/opt/puppetlabs/puppet/bin:$PATH

if [ "$(ruby -e 'puts Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.3")')" = "true" ]; then
gem install bundler --no-document --no-format-executable
else
gem install bundler --version '~> 1.0' --no-ri --no-rdoc --no-format-executable
fi
bundle install --path vendor/bundler
gem install bundler --no-document --no-format-executable
bundle config set path 'vendor/bundler'
bundle install

for version in 4.0.0 4.1.0 4.2.0 4.3.0 4.4.0 4.5.0; do
FACTER_GEM_VERSION="~> ${version}" bundle update
Expand Down

0 comments on commit 75f18d1

Please sign in to comment.