Expose box.name as environ var. to script

Allows script to perform logic based on BLIMPY_SHIPNAME
This commit is contained in:
Jeff Blaine 2012-12-27 10:59:21 -05:00
parent 420b878f8b
commit 1f6b038abf
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ module Blimpy
run_sudo = ''
end
box.ssh_into("cd #{dir_name} && #{run_sudo} ./#{script}")
box.ssh_into("cd #{dir_name} && #{run_sudo} BLIMPY_SHIPNAME=#{box.name} ./#{script}")
end
def bootstrap_script