Module: OpenDirectory::Configuration
- Included in:
- OpenDirectory
- Defined in:
- lib/open_directory/configuration.rb
Constant Summary collapse
- VALID_OPTIONS_KEYS =
%w(host_name host_username host_password od_username od_password od_datasource).freeze
- HOST_NAME =
nil
- HOST_USERNAME =
nil
- HOST_PASSWORD =
nil
- OD_USERNAME =
nil
- OD_PASSWORD =
nil
- OD_DATASOURCE =
'/LDAPv3/127.0.0.1/'
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
14 15 16 |
# File 'lib/open_directory/configuration.rb', line 14 def self.extended(base) base.reset end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
27 28 29 |
# File 'lib/open_directory/configuration.rb', line 27 def configure yield self end |
#reset ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/open_directory/configuration.rb', line 18 def reset self.host_name = HOST_NAME self.host_username = HOST_USERNAME self.host_password = HOST_PASSWORD self.od_username = OD_USERNAME self.od_password = OD_PASSWORD self.od_datasource = OD_DATASOURCE end |