Commit b92f86327b85802f3b0352cd819feaee3f46312a

Authored by Rodrigo Souto
1 parent 0683cc9e

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 puts "\nWARNING: This plugin is not setting up a ldap test server automatically. 7 puts "\nWARNING: This plugin is not setting up a ldap test server automatically.
3 Some tests may not be running. If you want to fully test this plugin, please 8 Some tests may not be running. If you want to fully test this plugin, please
4 setup the ldap test server and make the proper configurations on 9 setup the ldap test server and make the proper configurations on