Permalink
Browse files

Expose box.name as environ var. to script

Allows script to perform logic based on BLIMPY_SHIPNAME
  • Loading branch information...
1 parent 420b878 commit 1f6b038abfb04789b014cb57da27563ecc071673 @jblaine jblaine committed Dec 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/blimpy/livery/cwd.rb
View
@@ -22,7 +22,7 @@ def flight(box)
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

0 comments on commit 1f6b038

Please sign in to comment.