Class: Inspec::Resources::IisAppPool
- Inherits:
-
Object
- Object
- Inspec::Resources::IisAppPool
- Defined in:
- lib/inspec/resources/iis_app_pool.rb
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
- #resource_id ⇒ 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.
22 23 24 25 |
# File 'lib/inspec/resources/iis_app_pool.rb', line 22 def initialize(pool_name) @pool_name = pool_name @pool_path = "IIS:\\AppPools\\#{@pool_name}" end |
Instance Method Details
#enable32bit ⇒ Object
35 36 37 |
# File 'lib/inspec/resources/iis_app_pool.rb', line 35 def enable32bit iis_app_pool[:e32b] end |
#exists? ⇒ Boolean
75 76 77 |
# File 'lib/inspec/resources/iis_app_pool.rb', line 75 def exists? !!iis_app_pool[:pool_name] end |
#max_processes ⇒ Object
43 44 45 |
# File 'lib/inspec/resources/iis_app_pool.rb', line 43 def max_processes iis_app_pool[:processes] end |
#pipeline_mode ⇒ Object
39 40 41 |
# File 'lib/inspec/resources/iis_app_pool.rb', line 39 def pipeline_mode iis_app_pool[:mode] end |
#pool_name ⇒ Object
27 28 29 |
# File 'lib/inspec/resources/iis_app_pool.rb', line 27 def pool_name iis_app_pool[:pool_name] end |
#resource_id ⇒ Object
83 84 85 |
# File 'lib/inspec/resources/iis_app_pool.rb', line 83 def resource_id @pool_name end |
#runtime_version ⇒ Object
31 32 33 |
# File 'lib/inspec/resources/iis_app_pool.rb', line 31 def runtime_version iis_app_pool[:version] end |
#timeout ⇒ Object
47 48 49 |
# File 'lib/inspec/resources/iis_app_pool.rb', line 47 def timeout iis_app_pool[:timeout] end |
#timeout_days ⇒ Object
51 52 53 |
# File 'lib/inspec/resources/iis_app_pool.rb', line 51 def timeout_days iis_app_pool[:timeout_days] end |
#timeout_hours ⇒ Object
55 56 57 |
# File 'lib/inspec/resources/iis_app_pool.rb', line 55 def timeout_hours iis_app_pool[:timeout_hours] end |
#timeout_minutes ⇒ Object
59 60 61 |
# File 'lib/inspec/resources/iis_app_pool.rb', line 59 def timeout_minutes iis_app_pool[:timeout_minutes] end |
#timeout_seconds ⇒ Object
63 64 65 |
# File 'lib/inspec/resources/iis_app_pool.rb', line 63 def timeout_seconds iis_app_pool[:timeout_seconds] end |
#to_s ⇒ Object
79 80 81 |
# File 'lib/inspec/resources/iis_app_pool.rb', line 79 def to_s "IIS App Pool '#{@pool_name}'" end |
#user_identity_type ⇒ Object
67 68 69 |
# File 'lib/inspec/resources/iis_app_pool.rb', line 67 def user_identity_type iis_app_pool[:user_identity_type] end |
#username ⇒ Object
71 72 73 |
# File 'lib/inspec/resources/iis_app_pool.rb', line 71 def username iis_app_pool[:username] end |