class Packer::Provisioner::Shell
Public Class Methods
new()
click to toggle source
Calls superclass method
Packer::Provisioner::new
# File lib/packer/provisioners/shell.rb, line 8 def initialize super self.data['type'] = SHELL self.add_required(['inline', 'script', 'scripts']) end
Public Instance Methods
binary(bool)
click to toggle source
# File lib/packer/provisioners/shell.rb, line 26 def binary(bool) self.__add_boolean('binary', bool, []) end
environment_vars(envpairs)
click to toggle source
# File lib/packer/provisioners/shell.rb, line 30 def environment_vars(envpairs) self.__add_array_of_strings('environment_vars', envpairs) end
execute_command(command)
click to toggle source
# File lib/packer/provisioners/shell.rb, line 34 def execute_command(command) self.__add_string('execute_command', command) end
inline(commands)
click to toggle source
# File lib/packer/provisioners/shell.rb, line 14 def inline(commands) self.__add_array_of_strings('inline', commands, %w[script scripts]) end
inline_shebang(command)
click to toggle source
# File lib/packer/provisioners/shell.rb, line 38 def inline_shebang(command) self.__add_string('inline_shebang', command) end
remote_path(command)
click to toggle source
# File lib/packer/provisioners/shell.rb, line 42 def remote_path(command) self.__add_string('remote_path', command) end
script(filename)
click to toggle source
# File lib/packer/provisioners/shell.rb, line 18 def script(filename) self.__add_string('script', filename, %w[inline scripts]) end
scripts(filenames)
click to toggle source
# File lib/packer/provisioners/shell.rb, line 22 def scripts(filenames) self.__add_array_of_strings('scripts', filenames, %w[inline script]) end