mandy 0.4.94 → 0.4.95
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/packer.rb +5 -2
- metadata +1 -1
data/lib/packer.rb
CHANGED
@@ -11,8 +11,11 @@ module Mandy
|
|
11
11
|
to_be_copied = File.file?(dir) ? dir : File.join(dir, '*')
|
12
12
|
FileUtils.cp(script, tmp_path)
|
13
13
|
FileUtils.cp_r(Dir.glob(to_be_copied), tmp_path)
|
14
|
-
|
15
|
-
|
14
|
+
if gemfile and File.exists?(gemfile)
|
15
|
+
FileUtils.cp(gemfile, File.join(tmp_path, 'geminstaller.yml'))
|
16
|
+
else
|
17
|
+
FileUtils.cp(File.join(MANDY_DIR, 'geminstaller.yml'), tmp_path)
|
18
|
+
end
|
16
19
|
Dir.chdir(tmp_path) { `tar -cf bundle.tar *` }
|
17
20
|
File.join(tmp_path, 'bundle.tar')
|
18
21
|
end
|