Class: IisAppPool
- Inherits:
 - 
      Object
      
        
- Object
 - IisAppPool
 
 
- Defined in:
 - lib/inspec/resources/iis_app_pool.rb
 
Overview
check for web applications in IIS Note: this is only supported in windows 2012 and later
Instance Method Summary collapse
- #enable32bit ⇒ Object
 - #exists? ⇒ Boolean
 - 
  
    
      #initialize(pool_name)  ⇒ IisAppPool 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of IisAppPool.
 - #max_processes ⇒ Object
 - #pipeline_mode ⇒ Object
 - #pool_name ⇒ Object
 - #runtime_version ⇒ Object
 - #timeout ⇒ Object
 - #timeout_days ⇒ Object
 - #timeout_hours ⇒ Object
 - #timeout_minutes ⇒ Object
 - #timeout_seconds ⇒ Object
 - #to_s ⇒ Object
 - #user_identity_type ⇒ Object
 - #username ⇒ Object
 
Constructor Details
#initialize(pool_name) ⇒ IisAppPool
Returns a new instance of IisAppPool.
      21 22 23 24 25 26 27 28  | 
    
      # File 'lib/inspec/resources/iis_app_pool.rb', line 21 def initialize(pool_name) @pool_name = pool_name @pool_path = "IIS:\\AppPools\\#{@pool_name}" @cache = nil # verify that this resource is only supported on Windows return skip_resource "The `iis_app_pool` resource is not supported on your OS." unless inspec.os.windows? end  | 
  
Instance Method Details
#enable32bit ⇒ Object
      38 39 40  | 
    
      # File 'lib/inspec/resources/iis_app_pool.rb', line 38 def enable32bit iis_app_pool[:e32b] end  | 
  
#exists? ⇒ Boolean
      78 79 80  | 
    
      # File 'lib/inspec/resources/iis_app_pool.rb', line 78 def exists? !iis_app_pool[:pool_name].empty? end  | 
  
#max_processes ⇒ Object
      46 47 48  | 
    
      # File 'lib/inspec/resources/iis_app_pool.rb', line 46 def max_processes iis_app_pool[:processes] end  | 
  
#pipeline_mode ⇒ Object
      42 43 44  | 
    
      # File 'lib/inspec/resources/iis_app_pool.rb', line 42 def pipeline_mode iis_app_pool[:mode] end  | 
  
#pool_name ⇒ Object
      30 31 32  | 
    
      # File 'lib/inspec/resources/iis_app_pool.rb', line 30 def pool_name iis_app_pool[:pool_name] end  | 
  
#runtime_version ⇒ Object
      34 35 36  | 
    
      # File 'lib/inspec/resources/iis_app_pool.rb', line 34 def runtime_version iis_app_pool[:version] end  | 
  
#timeout ⇒ Object
      50 51 52  | 
    
      # File 'lib/inspec/resources/iis_app_pool.rb', line 50 def timeout iis_app_pool[:timeout] end  | 
  
#timeout_days ⇒ Object
      54 55 56  | 
    
      # File 'lib/inspec/resources/iis_app_pool.rb', line 54 def timeout_days iis_app_pool[:timeout_days] end  | 
  
#timeout_hours ⇒ Object
      58 59 60  | 
    
      # File 'lib/inspec/resources/iis_app_pool.rb', line 58 def timeout_hours iis_app_pool[:timeout_hours] end  | 
  
#timeout_minutes ⇒ Object
      62 63 64  | 
    
      # File 'lib/inspec/resources/iis_app_pool.rb', line 62 def timeout_minutes iis_app_pool[:timeout_minutes] end  | 
  
#timeout_seconds ⇒ Object
      66 67 68  | 
    
      # File 'lib/inspec/resources/iis_app_pool.rb', line 66 def timeout_seconds iis_app_pool[:timeout_seconds] end  | 
  
#to_s ⇒ Object
      82 83 84  | 
    
      # File 'lib/inspec/resources/iis_app_pool.rb', line 82 def to_s "IIS App Pool '#{@pool_name}'" end  | 
  
#user_identity_type ⇒ Object
      70 71 72  | 
    
      # File 'lib/inspec/resources/iis_app_pool.rb', line 70 def user_identity_type iis_app_pool[:user_identity_type] end  | 
  
#username ⇒ Object
      74 75 76  | 
    
      # File 'lib/inspec/resources/iis_app_pool.rb', line 74 def username iis_app_pool[:username] end  |