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 Provisioners
class Shell < Base
@ -15,8 +17,6 @@ module Vagrant
end
def validate(env, errors)
super
# Validate that the parameters are properly set
if path && inline
errors.add(I18n.t("vagrant.provisioners.shell.path_and_inline_set"))