Class: Inspec::Resources::RabbitmqConf
- Inherits:
- 
      Object
      
        - Object
- Inspec::Resources::RabbitmqConf
 
- Defined in:
- lib/resources/rabbitmq_conf.rb
Instance Method Summary collapse
- 
  
    
      #initialize(conf_path = nil)  ⇒ RabbitmqConf 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of RabbitmqConf. 
- #params(*opts) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(conf_path = nil) ⇒ RabbitmqConf
Returns a new instance of RabbitmqConf.
| 19 20 21 | # File 'lib/resources/rabbitmq_conf.rb', line 19 def initialize(conf_path = nil) @conf_path = conf_path || '/etc/rabbitmq/rabbitmq.config' end | 
Instance Method Details
#params(*opts) ⇒ Object
| 23 24 25 26 27 | # File 'lib/resources/rabbitmq_conf.rb', line 23 def params(*opts) opts.inject(read_params) do |res, nxt| res.respond_to?(:key) ? res[nxt] : nil end end | 
#to_s ⇒ Object
| 29 30 31 | # File 'lib/resources/rabbitmq_conf.rb', line 29 def to_s "rabbitmq_config #{@conf_path}" end |