Class: Inspec::Resources::PostgresIdentConf
- Inherits:
-
Object
- Object
- Inspec::Resources::PostgresIdentConf
- Includes:
- FileReader
- Defined in:
- lib/inspec/resources/postgres_ident_conf.rb
Instance Attribute Summary collapse
-
#conf_file ⇒ Object
readonly
Returns the value of attribute conf_file.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(ident_conf_path = nil) ⇒ PostgresIdentConf
constructor
A new instance of PostgresIdentConf.
- #to_s ⇒ Object
Methods included from FileReader
Constructor Details
#initialize(ident_conf_path = nil) ⇒ PostgresIdentConf
Returns a new instance of PostgresIdentConf.
21 22 23 24 25 26 |
# File 'lib/inspec/resources/postgres_ident_conf.rb', line 21 def initialize(ident_conf_path = nil) @conf_file = ident_conf_path || File.join(inspec.postgres.conf_dir, "pg_ident.conf") @content = nil @params = nil read_content end |
Instance Attribute Details
#conf_file ⇒ Object (readonly)
Returns the value of attribute conf_file.
19 20 21 |
# File 'lib/inspec/resources/postgres_ident_conf.rb', line 19 def conf_file @conf_file end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
19 20 21 |
# File 'lib/inspec/resources/postgres_ident_conf.rb', line 19 def params @params end |
Instance Method Details
#to_s ⇒ Object
35 36 37 |
# File 'lib/inspec/resources/postgres_ident_conf.rb', line 35 def to_s "PostgreSQL Ident Config #{@conf_file}" end |