lib/packer.rb in mandy-0.4.89 vs lib/packer.rb in mandy-0.4.90
- old
+ new
@@ -9,14 +9,11 @@
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) do
- `gem bundle`
- `rm -rf vendor/gems/gems`
- `tar -cf bundle.tar *`
- end
+ Dir.chdir(tmp_path) { `gem bundle` }
+ Dir.chdir(tmp_path) { `tar -cf bundle.tar *` }
File.join(tmp_path, 'bundle.tar')
end
def self.cleanup!(file)
return false unless File.extname(file) == '.tar'
\ No newline at end of file