Require tempfile in shell provisioner

This commit is contained in:
Mitchell Hashimoto 2012-01-06 17:36:51 -08:00
parent 67aa4c3819
commit 396beb9faf
1 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,5 @@
require 'tempfile'
module Vagrant module Vagrant
module Provisioners module Provisioners
class Shell < Base class Shell < Base
@ -15,8 +17,6 @@ module Vagrant
end end
def validate(env, errors) def validate(env, errors)
super
# Validate that the parameters are properly set # Validate that the parameters are properly set
if path && inline if path && inline
errors.add(I18n.t("vagrant.provisioners.shell.path_and_inline_set")) errors.add(I18n.t("vagrant.provisioners.shell.path_and_inline_set"))