lib/iisconfig/app_pool.rb in iisconfig-0.3.0 vs lib/iisconfig/app_pool.rb in iisconfig-0.4.0
- old
+ new
@@ -86,11 +86,11 @@
def build_commands
commands = []
commands << delete if exist? :apppool, @name
commands << add
- @process_model.settings.each do |d|
- commands << %W{SET CONFIG /section:applicationPools /[name='#{@name}'].processModel.#{d[:key]}:#{d[:value]}}
+ @process_model.settings.each_pair do |key, value|
+ commands << %W{SET CONFIG /section:applicationPools /[name='#{@name}'].processModel.#{key}:#{value}}
end
commands << %W{SET APPPOOL /apppool.name:#{@name} /enable32BitAppOnWin64:#{@enable_32bit_app_on_win64}}
@sites.each do |s|
s.app_pool @name.to_sym
\ No newline at end of file