Class: Inspec::Resources::IisAppPool

Inherits:
Object
  • Object
show all
Defined in:
lib/inspec/resources/iis_app_pool.rb

Instance Method Summary collapse

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

#enable32bitObject



35
36
37
# File 'lib/inspec/resources/iis_app_pool.rb', line 35

def enable32bit
  iis_app_pool[:e32b]
end

#exists?Boolean

Returns:

  • (Boolean)


75
76
77
# File 'lib/inspec/resources/iis_app_pool.rb', line 75

def exists?
  !!iis_app_pool[:pool_name]
end

#max_processesObject



43
44
45
# File 'lib/inspec/resources/iis_app_pool.rb', line 43

def max_processes
  iis_app_pool[:processes]
end

#pipeline_modeObject



39
40
41
# File 'lib/inspec/resources/iis_app_pool.rb', line 39

def pipeline_mode
  iis_app_pool[:mode]
end

#pool_nameObject



27
28
29
# File 'lib/inspec/resources/iis_app_pool.rb', line 27

def pool_name
  iis_app_pool[:pool_name]
end

#resource_idObject



83
84
85
# File 'lib/inspec/resources/iis_app_pool.rb', line 83

def resource_id
  @pool_name
end

#runtime_versionObject



31
32
33
# File 'lib/inspec/resources/iis_app_pool.rb', line 31

def runtime_version
  iis_app_pool[:version]
end

#timeoutObject



47
48
49
# File 'lib/inspec/resources/iis_app_pool.rb', line 47

def timeout
  iis_app_pool[:timeout]
end

#timeout_daysObject



51
52
53
# File 'lib/inspec/resources/iis_app_pool.rb', line 51

def timeout_days
  iis_app_pool[:timeout_days]
end

#timeout_hoursObject



55
56
57
# File 'lib/inspec/resources/iis_app_pool.rb', line 55

def timeout_hours
  iis_app_pool[:timeout_hours]
end

#timeout_minutesObject



59
60
61
# File 'lib/inspec/resources/iis_app_pool.rb', line 59

def timeout_minutes
  iis_app_pool[:timeout_minutes]
end

#timeout_secondsObject



63
64
65
# File 'lib/inspec/resources/iis_app_pool.rb', line 63

def timeout_seconds
  iis_app_pool[:timeout_seconds]
end

#to_sObject



79
80
81
# File 'lib/inspec/resources/iis_app_pool.rb', line 79

def to_s
  "IIS App Pool '#{@pool_name}'"
end

#user_identity_typeObject



67
68
69
# File 'lib/inspec/resources/iis_app_pool.rb', line 67

def user_identity_type
  iis_app_pool[:user_identity_type]
end

#usernameObject



71
72
73
# File 'lib/inspec/resources/iis_app_pool.rb', line 71

def username
  iis_app_pool[:username]
end