Method: Inspec::Resources::PostgresConf#initialize
- Defined in:
- lib/inspec/resources/postgres_conf.rb
#initialize(conf_path = nil) ⇒ PostgresConf
Returns a new instance of PostgresConf.
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/inspec/resources/postgres_conf.rb', line 25 def initialize(conf_path = nil) @conf_path = conf_path || inspec.postgres.conf_path if @conf_path.nil? return skip_resource "PostgreSQL conf path is not set" end @conf_dir = File.(File.dirname(@conf_path)) @files_contents = {} @content = nil @params = nil read_content end |