mofa 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,7 @@ class SourceCookbook < Cookbook
21
21
  fail "Folder #{source_dir} is not a Cookbook Folder!" unless cookbook_folder?(source_dir)
22
22
 
23
23
  @pkg_name ||= "#{name}_#{version}-SNAPSHOT.tar.gz"
24
- @pkg_dir = "#{source_dir}/.mofa/#{token}"
24
+ @pkg_dir = "#{Mofa::Config.config['tmp_dir']}/.mofa/#{token}"
25
25
  set_cookbooks_url
26
26
  end
27
27
 
@@ -42,11 +42,11 @@ class SourceCookbook < Cookbook
42
42
  end
43
43
 
44
44
  def load_mofa_yml
45
- @mofa_yml = MofaYml.load_from_file("#{source_dir}/.mofa.yml", self)
45
+ @mofa_yml = MofaYml.load_from_file("#{Mofa::Config.config['tmp_dir']}/.mofa.yml", self)
46
46
  end
47
47
 
48
48
  def load_mofa_yml_local
49
- @mofa_yml_local = MofaYml.load_from_file("#{source_dir}/.mofa.local.yml", self)
49
+ @mofa_yml_local = MofaYml.load_from_file("#{Mofa::Config.config['tmp_dir']}/.mofa.local.yml", self)
50
50
  end
51
51
 
52
52
  def autodetect_name
@@ -67,11 +67,11 @@ class SourceCookbook < Cookbook
67
67
  end
68
68
 
69
69
  def cleanup!
70
- unless (Dir.entries("#{source_dir}/.mofa") - %w{ . .. }).empty?
71
- say "Removing content of folder #{source_dir}/.mofa"
72
- run "rm -r #{source_dir}/.mofa/*"
70
+ unless (Dir.entries("#{Mofa::Config.config['tmp_dir']}/.mofa") - %w{ . .. }).empty?
71
+ say "Removing content of folder #{Mofa::Config.config['tmp_dir']}/.mofa"
72
+ run "rm -r #{Mofa::Config.config['tmp_dir']}/.mofa/*"
73
73
  else
74
- say "Folder #{source_dir}/.mofa is (already) clean."
74
+ say "Folder #{Mofa::Config.config['tmp_dir']}/.mofa is (already) clean."
75
75
  end
76
76
  end
77
77
 
@@ -1,3 +1,3 @@
1
1
  module Mofa
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
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.3
4
+ version: 0.3.4
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: 2015-10-28 00:00:00.000000000 Z
12
+ date: 2015-10-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec