Skip to content

Commit 6e0bbfe

Browse files
committed
Fix bogus bundler requirement in puppetserver-ca
When developing, you are intended to explicitly use bundler by running `bundle exec exe/puppetserver-ca`, not by running `./exe/puppetserver-ca` and hoping for the bundle to be loaded for you. Because this file is included as-is in the gem, when executed from the outside of a bundle, this result in an error: ```sh-session $ /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/openvoxserver-ca-3.0.0/exe/puppetserver-ca /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/openvoxserver-ca-3.0.0/exe/puppetserver-ca:6:in `<main>': private method `require' called for Bundler:Module (NoMethodError) Bundler.require(:default) ^^^^^^^^ ``` On an AIO installation, users are unlikely to hit this issue (given the complex path above). But on FreeBSD, this puppetserver-ca "entry point" is in the $PATH (maybe I should not install it), so easily found by users, which then expect it to work.
1 parent dccdf03 commit 6e0bbfe

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

exe/puppetserver-ca

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
#!/usr/bin/env ruby
22

3-
# This requires everything in our Gemfile, so when functionally testing
4-
# our debugging tools are available without having to require them
5-
require 'bundler/setup'
6-
Bundler.require(:default)
7-
83
require 'puppetserver/ca/cli'
94

105
exit Puppetserver::Ca::Cli.run(ARGV)

0 commit comments

Comments
 (0)