diff --git a/dev_setup/cookbooks/erlang/recipes/default.rb b/dev_setup/cookbooks/erlang/recipes/default.rb index 1c62727..e307836 100644 --- a/dev_setup/cookbooks/erlang/recipes/default.rb +++ b/dev_setup/cookbooks/erlang/recipes/default.rb @@ -8,7 +8,8 @@ package pkg end -remote_file File.join(node[:deployment][:setup_cache], "otp_src_#{node[:erlang][:version]}.tar.gz") do +tarball_path = File.join(node[:deployment][:setup_cache], "otp_src_#{node[:erlang][:version]}.tar.gz") +remote_file tarball_path do owner node[:deployment][:user] source node[:erlang][:source] checksum "849d050b59821e9f2831fee2e3267d84b410eee860a55f6fc9320cc00b5205bd" @@ -26,7 +27,7 @@ bash "Install Erlang" do cwd File.join("", "tmp") user node[:deployment][:user] code <<-EOH - tar xvzf otp_src_#{node[:erlang][:version]}.tar.gz + tar xvzf #{tarball_path} cd otp_src_#{node[:erlang][:version]} #{File.join(".", "configure")} --prefix=#{node[:erlang][:path]} --disable-hipe make diff --git a/dev_setup/cookbooks/node/libraries/nodejs_install.rb b/dev_setup/cookbooks/node/libraries/nodejs_install.rb index cef5e38..b29818d 100644 --- a/dev_setup/cookbooks/node/libraries/nodejs_install.rb +++ b/dev_setup/cookbooks/node/libraries/nodejs_install.rb @@ -4,7 +4,8 @@ module NodeInstall package pkg end - remote_file File.join(node[:deployment][:setup_cache], "node-v#{node_version}.tar.gz") do + tarball_path = File.join(node[:deployment][:setup_cache], "node-v#{node_version}.tar.gz") + remote_file tarball_path do owner node[:deployment][:user] source node_source checksum node[:node][:checksums][node_version] @@ -22,7 +23,7 @@ module NodeInstall cwd File.join("", "tmp") user node[:deployment][:user] code <<-EOH - tar xzf node-v#{node_version}.tar.gz + tar xzf #{tarball_path} cd node-v#{node_version} ./configure --prefix=#{node_path} make diff --git a/dev_setup/cookbooks/ruby/libraries/ruby_install.rb b/dev_setup/cookbooks/ruby/libraries/ruby_install.rb index 6841649..3947595 100644 --- a/dev_setup/cookbooks/ruby/libraries/ruby_install.rb +++ b/dev_setup/cookbooks/ruby/libraries/ruby_install.rb @@ -8,7 +8,8 @@ module RubyInstall package pkg end - remote_file File.join(node[:deployment][:setup_cache], "ruby-#{ruby_version}.tar.gz") do + tarball_path = File.join(node[:deployment][:setup_cache], "ruby-#{ruby_version}.tar.gz") + remote_file tarball_path do owner node[:deployment][:user] source ruby_source checksum node[:ruby][:checksums][ruby_version] @@ -26,7 +27,7 @@ module RubyInstall cwd File.join("", "tmp") user node[:deployment][:user] code <<-EOH - tar xzf ruby-#{ruby_version}.tar.gz + tar xzf #{tarball_path} cd ruby-#{ruby_version} ./configure --disable-pthread --prefix=#{ruby_path} make