Class: NOBSPW::Configuration
- Inherits:
-
Object
- Object
- NOBSPW::Configuration
- Defined in:
- lib/nobspw/configuration.rb
Instance Attribute Summary collapse
-
#blacklist ⇒ Object
Returns the value of attribute blacklist.
-
#dictionary_path ⇒ Object
Returns the value of attribute dictionary_path.
-
#domain_name ⇒ Object
Returns the value of attribute domain_name.
-
#grep_path ⇒ Object
Returns the value of attribute grep_path.
-
#interrupt_validation_for ⇒ Object
Returns the value of attribute interrupt_validation_for.
-
#max_password_length ⇒ Object
Returns the value of attribute max_password_length.
-
#min_password_length ⇒ Object
Returns the value of attribute min_password_length.
-
#min_unique_characters ⇒ Object
Returns the value of attribute min_unique_characters.
-
#validation_methods ⇒ Object
Returns the value of attribute validation_methods.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/nobspw/configuration.rb', line 13 def initialize @min_password_length = 10 @max_password_length = 256 @min_unique_characters = 5 @dictionary_path = File.join(File.dirname(__FILE__), "..", "db", "dictionary.txt") @grep_path = `which grep`.strip @domain_name = nil @blacklist = nil @validation_methods = NOBSPW::ValidationMethods::DEFAULT_VALIDATION_METHODS @interrupt_validation_for = NOBSPW::ValidationMethods::INTERRUPT_VALIDATION_FOR end |
Instance Attribute Details
#blacklist ⇒ Object
Returns the value of attribute blacklist.
9 10 11 |
# File 'lib/nobspw/configuration.rb', line 9 def blacklist @blacklist end |
#dictionary_path ⇒ Object
Returns the value of attribute dictionary_path.
6 7 8 |
# File 'lib/nobspw/configuration.rb', line 6 def dictionary_path @dictionary_path end |
#domain_name ⇒ Object
Returns the value of attribute domain_name.
8 9 10 |
# File 'lib/nobspw/configuration.rb', line 8 def domain_name @domain_name end |
#grep_path ⇒ Object
Returns the value of attribute grep_path.
7 8 9 |
# File 'lib/nobspw/configuration.rb', line 7 def grep_path @grep_path end |
#interrupt_validation_for ⇒ Object
Returns the value of attribute interrupt_validation_for.
11 12 13 |
# File 'lib/nobspw/configuration.rb', line 11 def interrupt_validation_for @interrupt_validation_for end |
#max_password_length ⇒ Object
Returns the value of attribute max_password_length.
4 5 6 |
# File 'lib/nobspw/configuration.rb', line 4 def max_password_length @max_password_length end |
#min_password_length ⇒ Object
Returns the value of attribute min_password_length.
3 4 5 |
# File 'lib/nobspw/configuration.rb', line 3 def min_password_length @min_password_length end |
#min_unique_characters ⇒ Object
Returns the value of attribute min_unique_characters.
5 6 7 |
# File 'lib/nobspw/configuration.rb', line 5 def min_unique_characters @min_unique_characters end |
#validation_methods ⇒ Object
Returns the value of attribute validation_methods.
10 11 12 |
# File 'lib/nobspw/configuration.rb', line 10 def validation_methods @validation_methods end |