Class: Rake::Funnel::Support::MSDeploy::RegistryPatch

Inherits:
Object
  • Object
show all
Defined in:
lib/rake/funnel/support/msdeploy/registry_patch.rb

Constant Summary collapse

KEYS =
[
  'SOFTWARE\Microsoft\IIS Extensions\MSDeploy\3',
  'SOFTWARE\Wow6432Node\Microsoft\IIS Extensions\MSDeploy\3'
]
VERSION_VALUE =
'Version'
FAKE_VERSION =
'99.0.0.0'

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ RegistryPatch

Returns a new instance of RegistryPatch.



13
14
15
16
17
18
19
20
# File 'lib/rake/funnel/support/msdeploy/registry_patch.rb', line 13

def initialize(&block)
  begin
    patch.apply!
    yield block if block_given?
  ensure
    patch.revert!
  end
end