Commit 6e0bbfe
committed
Fix bogus bundler requirement in
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.puppetserver-ca
1 parent dccdf03 commit 6e0bbfe
1 file changed
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | 3 | | |
9 | 4 | | |
10 | 5 | | |
0 commit comments