Commit b92f86327b85802f3b0352cd819feaee3f46312a
1 parent
0683cc9e
Exists in
master
and in
29 other branches
ldap-plugin: install gem only if not installed already
Showing
1 changed file
with
6 additions
and
1 deletions
Show diff stats
plugins/ldap/install.rb
1 | -system "gem install --user-install net-ldap -v 0.3.1" | |
1 | +begin | |
2 | + gem "net-ldap", '=0.3.1' | |
3 | +rescue Gem::LoadError => exception | |
4 | + system "gem install --user-install net-ldap -v 0.3.1" | |
5 | +end | |
6 | + | |
2 | 7 | puts "\nWARNING: This plugin is not setting up a ldap test server automatically. |
3 | 8 | Some tests may not be running. If you want to fully test this plugin, please |
4 | 9 | setup the ldap test server and make the proper configurations on | ... | ... |