Class: Packer::Provisioner::WindowsRestart

Inherits:
Packer::Provisioner show all
Defined in:
lib/packer/provisioners/windows_restart.rb

Constant Summary

Constants inherited from Packer::Provisioner

ANSIBLE, CHEF_CLIENT, CHEF_SOLO, FILE, POWERSHELL, PUPPET_MASTERLESS, PUPPET_SERVER, SALT, SHELL, VALID_PROVISIONER_TYPES, WINDOWS_RESTART, WINDOWS_SHELL

Instance Attribute Summary

Attributes inherited from DataObject

#data, #key_dependencies, #required

Instance Method Summary collapse

Methods inherited from Packer::Provisioner

#except, get_provisioner, #only, #override, #pause_before, types

Methods inherited from DataObject

#__add_array_of_array_of_strings, #__add_array_of_hashes, #__add_array_of_ints, #__add_array_of_strings, #__add_boolean, #__add_hash, #__add_integer, #__add_json, #__add_string, #__exclusive_key_error, #add_key_dependencies, #add_required, #deep_copy, #validate, #validate_key_dependencies, #validate_required

Constructor Details

#initializeWindowsRestart

Returns a new instance of WindowsRestart.



8
9
10
11
# File 'lib/packer/provisioners/windows_restart.rb', line 8

def initialize
  super
  self.data['type'] = WINDOWS_RESTART
end

Instance Method Details

#restart_check_command(command) ⇒ Object



17
18
19
# File 'lib/packer/provisioners/windows_restart.rb', line 17

def restart_check_command(command)
  self.__add_string('restart_check_command', command)
end

#restart_command(command) ⇒ Object



13
14
15
# File 'lib/packer/provisioners/windows_restart.rb', line 13

def restart_command(command)
  self.__add_string('restart_command', command)
end

#restart_timeout(timeout) ⇒ Object



21
22
23
# File 'lib/packer/provisioners/windows_restart.rb', line 21

def restart_timeout(timeout)
  self.__add_string('restart_timeout', timeout)
end