lib/packer.rb in mandy-0.4.87 vs lib/packer.rb in mandy-0.4.88
- old
+ new
@@ -9,11 +9,14 @@
FileUtils.mkdir_p(tmp_path)
to_be_copied = File.file?(dir) ? dir : File.join(dir, '*')
FileUtils.cp_r(script, tmp_path)
FileUtils.cp_r(Dir.glob(to_be_copied), tmp_path)
FileUtils.cp_r(gemfile, tmp_path)
- Dir.chdir(tmp_path) { `gem bundle` }
- Dir.chdir(tmp_path) { `tar -cf bundle.tar *` }
+ Dir.chdir(tmp_path) do
+ `gem bundle`
+ `rm -rf vendor/gems/gems`
+ `tar -cf bundle.tar *`
+ end
File.join(tmp_path, 'bundle.tar')
end
def self.cleanup!(file)
return false unless File.extname(file) == '.tar'
\ No newline at end of file