mandy 0.4.94 → 0.4.95

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/packer.rb +5 -2
  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
- FileUtils.cp(File.join(MANDY_DIR, 'geminstaller.yml'), tmp_path)
15
- FileUtils.cp(gemfile, File.join(tmp_path, 'gems.yml')) if gemfile and File.exists?(gemfile)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mandy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.94
4
+ version: 0.4.95
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Kent