Class: Tapjoy::LDAP::Key::Install
- Inherits:
-
Object
- Object
- Tapjoy::LDAP::Key::Install
- Defined in:
- lib/tapjoy/ldap/key/install.rb
Overview
Install key on localhost
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/tapjoy/ldap/key/install.rb', line 6 def install Tapjoy::LDAP::Key.get_keys_from_ldap.each do |user, values| directory = directory(user) FileUtils.mkdir_p(directory) unless File.exists?directory = "#{directory}/authorized_keys" keys = load_keys_from_file() insert_keys(, keys, values) end end |