use new volcano backend for security policy

This commit is contained in:
Christoph Hartmann 2015-09-05 18:22:21 +02:00 committed by Dominik Richter
parent 08ad9704a7
commit e9e24a6bd5

View file

@ -21,11 +21,11 @@ class SecurityPolicy < Vulcano.resource(1)
# load security content
def load
# export the security policy
@runner.run_command('secedit /export /cfg win_secpol.cfg')
vulcano.run_command('secedit /export /cfg win_secpol.cfg')
# store file content
command_result ||= @runner.run_command('type win_secpol.cfg')
command_result ||= vulcano.run_command('type win_secpol.cfg')
# delete temp file
@runner.run_command('del win_secpol.cfg')
vulcano.run_command('del win_secpol.cfg')
@@exit_status = command_result.exit_status.to_i
@@policy = command_result.stdout