Sha256: 9505fecdf00fc3fa1454a3f8cb179e8d6696eee7a27f3343f326e8634480d0c3

Contents?: true

Size: 589 Bytes

Versions: 7

Compression:

Stored size: 589 Bytes

Contents

# Encoding: utf-8
require 'packer/provisioner'
require 'packer/dataobject'

module Packer
  class Provisioner < Packer::DataObject
    class WindowsRestart < Provisioner
      def initialize
        super
        self.data['type'] = WINDOWS_RESTART
      end

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

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
packer-config-1.6.5 lib/packer/provisioners/windows_restart.rb
packer-config-1.6.4 lib/packer/provisioners/windows_restart.rb
packer-config-1.6.3 lib/packer/provisioners/windows_restart.rb
packer-config-1.6.2 lib/packer/provisioners/windows_restart.rb
packer-config-1.6.1 lib/packer/provisioners/windows_restart.rb
packer-config-1.6.0 lib/packer/provisioners/windows_restart.rb
packer-config-1.5.0 lib/packer/provisioners/windows_restart.rb