mofa 0.3.32 → 0.3.33

Sign up to get free protection for your applications and to get access to all the features.
@@ -65,17 +65,21 @@ class ReleasedCookbook < Cookbook
65
65
 
66
66
  # Sync in mofa_secrets
67
67
  if override_mofa_secrets
68
- run "rsync -vr #{override_mofa_secrets}/ #{pkg_dir}/tmp/cookbooks/#{name}/"
68
+ run "rsync -vr #{override_mofa_secrets}/#{name}/ #{pkg_dir}/tmp/cookbooks/#{name}/"
69
69
  end
70
70
 
71
- if File.exist?("#{pkg_dir}/tmp/cookbooks/#{name}/.mofa.yml")
71
+ if File.file?("#{pkg_dir}/tmp/cookbooks/#{name}/.mofa.yml")
72
72
  FileUtils.cp "#{pkg_dir}/tmp/cookbooks/#{name}/.mofa.yml", pkg_dir
73
73
  end
74
74
 
75
- if File.exist?("#{pkg_dir}/tmp/cookbooks/#{name}/.mofa.local.yml")
75
+ if File.file?("#{pkg_dir}/tmp/cookbooks/#{name}/.mofa.local.yml")
76
76
  FileUtils.cp "#{pkg_dir}/tmp/cookbooks/#{name}/.mofa.local.yml", pkg_dir
77
77
  end
78
78
 
79
+ # reload mofa yml
80
+ load_mofa_yml
81
+ load_mofa_yml_local
82
+
79
83
  run "cd #{pkg_dir}/tmp/;tar c#{tar_verbose}fz #{pkg_dir}/#{pkg_name}.new ."
80
84
  run "rm #{pkg_dir}/#{pkg_name}"
81
85
  run "mv #{pkg_dir}/#{pkg_name}.new #{pkg_dir}/#{pkg_name}"
data/lib/mofa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mofa
2
- VERSION = "0.3.32"
2
+ VERSION = "0.3.33"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mofa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.32
4
+ version: 0.3.33
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-16 00:00:00.000000000 Z
12
+ date: 2017-03-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec