stack-kicker 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Stack
2
2
  module Kicker
3
- VERSION = "0.0.9"
3
+ VERSION = "0.0.10"
4
4
  end
5
5
  end
data/lib/stack.rb CHANGED
@@ -385,8 +385,9 @@ cookbook_path [ '<%=config[:stackhome]%>/cookbooks' ]
385
385
  end
386
386
 
387
387
  # default to execing post install scripts in stackhome is a cwd wasn't set
388
+ # (cwd is calculated relative to stackhome)
388
389
  if role_details[:post_install_cwd].nil?
389
- role_details[:post_install_cwd] = config[:stackhome]
390
+ role_details[:post_install_cwd] = '/.'
390
391
  end
391
392
 
392
393
  (1..role_details[:count]).each do |p|
@@ -749,7 +750,7 @@ cookbook_path [ '<%=config[:stackhome]%>/cookbooks' ]
749
750
 
750
751
  # run any post-install scripts, these are run from the current host, not the nodes
751
752
  if role_details[:post_install_script]
752
- Logger.debug { "This role has a post-install script (#{role_details[:post_install_script]}, preparing to run" }
753
+ Logger.debug { "This role has a post-install script (#{role_details[:post_install_script]}), preparing to run" }
753
754
  # convert when we got passed to an absolute path
754
755
  post_install_script_abs = File.realpath(config[:stackhome] + '/' + role_details[:post_install_script])
755
756
  post_install_cwd_abs = File.realpath(config[:stackhome] + '/' + role_details[:post_install_cwd])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stack-kicker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: