microwave 1.0.2 → 1.0.3

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.
Files changed (125) hide show
  1. data/Rakefile +4 -4
  2. data/bin/chef-solo +2 -0
  3. data/spec/spec_helper.rb +2 -0
  4. data/spec/unit/checksum/storage/filesystem_spec.rb +4 -4
  5. data/spec/unit/config_spec.rb +7 -4
  6. data/spec/unit/data_bag_spec.rb +11 -11
  7. data/spec/unit/formatters/error_inspectors/compile_error_inspector_spec.rb +8 -8
  8. data/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb +5 -5
  9. metadata +10 -124
  10. data/distro/README +0 -2
  11. data/distro/arch/etc/conf.d/chef-client.conf +0 -5
  12. data/distro/arch/etc/conf.d/chef-expander.conf +0 -8
  13. data/distro/arch/etc/conf.d/chef-server-webui.conf +0 -10
  14. data/distro/arch/etc/conf.d/chef-server.conf +0 -10
  15. data/distro/arch/etc/conf.d/chef-solr.conf +0 -8
  16. data/distro/arch/etc/rc.d/chef-client +0 -90
  17. data/distro/arch/etc/rc.d/chef-expander +0 -78
  18. data/distro/arch/etc/rc.d/chef-server +0 -78
  19. data/distro/arch/etc/rc.d/chef-server-webui +0 -78
  20. data/distro/arch/etc/rc.d/chef-solr +0 -78
  21. data/distro/common/html/chef-client.8.html +0 -145
  22. data/distro/common/html/chef-expander.8.html +0 -164
  23. data/distro/common/html/chef-expanderctl.8.html +0 -146
  24. data/distro/common/html/chef-server-webui.8.html +0 -185
  25. data/distro/common/html/chef-server.8.html +0 -182
  26. data/distro/common/html/chef-solo.8.html +0 -191
  27. data/distro/common/html/chef-solr.8.html +0 -165
  28. data/distro/common/html/knife-bootstrap.1.html +0 -241
  29. data/distro/common/html/knife-client.1.html +0 -219
  30. data/distro/common/html/knife-configure.1.html +0 -170
  31. data/distro/common/html/knife-cookbook-site.1.html +0 -241
  32. data/distro/common/html/knife-cookbook.1.html +0 -384
  33. data/distro/common/html/knife-data-bag.1.html +0 -238
  34. data/distro/common/html/knife-environment.1.html +0 -267
  35. data/distro/common/html/knife-exec.1.html +0 -134
  36. data/distro/common/html/knife-index.1.html +0 -125
  37. data/distro/common/html/knife-node.1.html +0 -250
  38. data/distro/common/html/knife-recipe.1.html +0 -92
  39. data/distro/common/html/knife-role.1.html +0 -200
  40. data/distro/common/html/knife-search.1.html +0 -288
  41. data/distro/common/html/knife-ssh.1.html +0 -156
  42. data/distro/common/html/knife-status.1.html +0 -128
  43. data/distro/common/html/knife-tag.1.html +0 -137
  44. data/distro/common/html/knife.1.html +0 -320
  45. data/distro/common/html/shef.1.html +0 -283
  46. data/distro/common/man/man1/knife-bootstrap.1 +0 -201
  47. data/distro/common/man/man1/knife-client.1 +0 -99
  48. data/distro/common/man/man1/knife-configure.1 +0 -88
  49. data/distro/common/man/man1/knife-cookbook-site.1 +0 -145
  50. data/distro/common/man/man1/knife-cookbook.1 +0 -345
  51. data/distro/common/man/man1/knife-data-bag.1 +0 -136
  52. data/distro/common/man/man1/knife-environment.1 +0 -178
  53. data/distro/common/man/man1/knife-exec.1 +0 -46
  54. data/distro/common/man/man1/knife-index.1 +0 -29
  55. data/distro/common/man/man1/knife-node.1 +0 -134
  56. data/distro/common/man/man1/knife-role.1 +0 -88
  57. data/distro/common/man/man1/knife-search.1 +0 -280
  58. data/distro/common/man/man1/knife-ssh.1 +0 -79
  59. data/distro/common/man/man1/knife-status.1 +0 -29
  60. data/distro/common/man/man1/knife-tag.1 +0 -43
  61. data/distro/common/man/man1/knife.1 +0 -288
  62. data/distro/common/man/man1/shef.1 +0 -256
  63. data/distro/common/man/man8/chef-client.8 +0 -104
  64. data/distro/common/man/man8/chef-expander.8 +0 -97
  65. data/distro/common/man/man8/chef-expanderctl.8 +0 -62
  66. data/distro/common/man/man8/chef-server-webui.8 +0 -155
  67. data/distro/common/man/man8/chef-server.8 +0 -147
  68. data/distro/common/man/man8/chef-solo.8 +0 -158
  69. data/distro/common/man/man8/chef-solr.8 +0 -122
  70. data/distro/common/markdown/README +0 -3
  71. data/distro/common/markdown/man1/knife-bootstrap.mkd +0 -141
  72. data/distro/common/markdown/man1/knife-client.mkd +0 -103
  73. data/distro/common/markdown/man1/knife-configure.mkd +0 -70
  74. data/distro/common/markdown/man1/knife-cookbook-site.mkd +0 -123
  75. data/distro/common/markdown/man1/knife-cookbook.mkd +0 -263
  76. data/distro/common/markdown/man1/knife-data-bag.mkd +0 -121
  77. data/distro/common/markdown/man1/knife-environment.mkd +0 -151
  78. data/distro/common/markdown/man1/knife-exec.mkd +0 -37
  79. data/distro/common/markdown/man1/knife-index.mkd +0 -30
  80. data/distro/common/markdown/man1/knife-node.mkd +0 -130
  81. data/distro/common/markdown/man1/knife-role.mkd +0 -85
  82. data/distro/common/markdown/man1/knife-search.mkd +0 -180
  83. data/distro/common/markdown/man1/knife-ssh.mkd +0 -69
  84. data/distro/common/markdown/man1/knife-status.mkd +0 -36
  85. data/distro/common/markdown/man1/knife-tag.mkd +0 -39
  86. data/distro/common/markdown/man1/knife.mkd +0 -218
  87. data/distro/common/markdown/man1/shef.mkd +0 -189
  88. data/distro/common/markdown/man8/chef-client.mkd +0 -74
  89. data/distro/common/markdown/man8/chef-expander.mkd +0 -82
  90. data/distro/common/markdown/man8/chef-expanderctl.mkd +0 -58
  91. data/distro/common/markdown/man8/chef-server-webui.mkd +0 -121
  92. data/distro/common/markdown/man8/chef-server.mkd +0 -121
  93. data/distro/common/markdown/man8/chef-solo.mkd +0 -107
  94. data/distro/common/markdown/man8/chef-solr.mkd +0 -89
  95. data/distro/debian/etc/default/chef-client +0 -4
  96. data/distro/debian/etc/default/chef-expander +0 -8
  97. data/distro/debian/etc/default/chef-server +0 -9
  98. data/distro/debian/etc/default/chef-server-webui +0 -9
  99. data/distro/debian/etc/default/chef-solr +0 -8
  100. data/distro/debian/etc/init.d/chef-client +0 -210
  101. data/distro/debian/etc/init.d/chef-expander +0 -176
  102. data/distro/debian/etc/init.d/chef-server +0 -122
  103. data/distro/debian/etc/init.d/chef-server-webui +0 -123
  104. data/distro/debian/etc/init.d/chef-solr +0 -176
  105. data/distro/debian/etc/init/chef-client.conf +0 -17
  106. data/distro/debian/etc/init/chef-expander.conf +0 -17
  107. data/distro/debian/etc/init/chef-server-webui.conf +0 -17
  108. data/distro/debian/etc/init/chef-server.conf +0 -17
  109. data/distro/debian/etc/init/chef-solr.conf +0 -17
  110. data/distro/redhat/etc/init.d/chef-client +0 -121
  111. data/distro/redhat/etc/init.d/chef-expander +0 -104
  112. data/distro/redhat/etc/init.d/chef-server +0 -112
  113. data/distro/redhat/etc/init.d/chef-server-webui +0 -112
  114. data/distro/redhat/etc/init.d/chef-solr +0 -104
  115. data/distro/redhat/etc/logrotate.d/chef-client +0 -8
  116. data/distro/redhat/etc/logrotate.d/chef-expander +0 -8
  117. data/distro/redhat/etc/logrotate.d/chef-server +0 -8
  118. data/distro/redhat/etc/logrotate.d/chef-server-webui +0 -8
  119. data/distro/redhat/etc/logrotate.d/chef-solr +0 -8
  120. data/distro/redhat/etc/sysconfig/chef-client +0 -15
  121. data/distro/redhat/etc/sysconfig/chef-expander +0 -7
  122. data/distro/redhat/etc/sysconfig/chef-server +0 -14
  123. data/distro/redhat/etc/sysconfig/chef-server-webui +0 -14
  124. data/distro/redhat/etc/sysconfig/chef-solr +0 -8
  125. data/distro/windows/service_manager.rb +0 -164
data/Rakefile CHANGED
@@ -17,16 +17,16 @@
17
17
  # limitations under the License.
18
18
  #
19
19
 
20
- require File.dirname(__FILE__) + '/lib/chef/version'
20
+ #require File.dirname(__FILE__) + '/lib/chef/version'
21
21
 
22
22
  require 'rubygems'
23
23
  require 'rubygems/package_task'
24
- require 'rake/rdoctask'
24
+ require 'rdoc/task'
25
25
  require './tasks/rspec.rb'
26
26
 
27
- GEM_NAME = "chef"
27
+ GEM_NAME = "microwave"
28
28
 
29
- spec = eval(File.read("chef.gemspec"))
29
+ spec = eval(File.read("microwave.gemspec"))
30
30
 
31
31
  # This has to be here or else the docs get generated *after* the gem is created
32
32
  task :gem => 'docs:all'
data/bin/chef-solo CHANGED
@@ -18,6 +18,8 @@
18
18
  # See the License for the specific language governing permissions and
19
19
  # limitations under the License.
20
20
 
21
+ ENV['MICROWAVE_ROOT'] ||= Dir.pwd
22
+
21
23
  require 'rubygems'
22
24
  $:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
23
25
  require 'chef/application/solo'
data/spec/spec_helper.rb CHANGED
@@ -18,6 +18,8 @@
18
18
  # If you need to add anything in here, don't.
19
19
  # Add it to one of the files in spec/support
20
20
 
21
+ ENV['MICROWAVE_ROOT'] ||= Dir.pwd
22
+
21
23
  # Abuse ruby's constant lookup to avoid undefined constant errors
22
24
  module Shef
23
25
  JUST_TESTING_MOVE_ALONG = true unless defined? JUST_TESTING_MOVE_ALONG
@@ -33,23 +33,23 @@ describe Chef::Checksum::Storage::Filesystem do
33
33
  end
34
34
 
35
35
  it "has the path to the file in the checksum repo" do
36
- @storage.file_location.should == "/var/chef/checksums/3f/3fafecfb15585ede6b840158cbc2f399"
36
+ @storage.file_location.should == Chef::Config.platform_specific_path("/var/chef/checksums/3f/3fafecfb15585ede6b840158cbc2f399")
37
37
  end
38
38
 
39
39
  it "has the path the the file's subdirectory in the checksum repo" do
40
- @storage.checksum_repo_directory.should == "/var/chef/checksums/3f"
40
+ @storage.checksum_repo_directory.should == Chef::Config.platform_specific_path("/var/chef/checksums/3f")
41
41
  end
42
42
 
43
43
  it "commits a file from a given location to the checksum repo location" do
44
44
  File.should_receive(:rename).with("/tmp/arbitrary_file_location", @storage.file_location)
45
- FileUtils.should_receive(:mkdir_p).with("/var/chef/checksums/3f")
45
+ FileUtils.should_receive(:mkdir_p).with(Chef::Config.platform_specific_path("/var/chef/checksums/3f"))
46
46
 
47
47
  @storage.commit("/tmp/arbitrary_file_location")
48
48
  end
49
49
 
50
50
  it "reverts committing a file" do
51
51
  File.should_receive(:rename).with("/tmp/arbitrary_file_location", @storage.file_location)
52
- FileUtils.should_receive(:mkdir_p).with("/var/chef/checksums/3f")
52
+ FileUtils.should_receive(:mkdir_p).with(Chef::Config.platform_specific_path("/var/chef/checksums/3f"))
53
53
  @storage.commit("/tmp/arbitrary_file_location")
54
54
 
55
55
  File.should_receive(:rename).with(@storage.file_location, "/tmp/arbitrary_file_location")
@@ -129,18 +129,21 @@ describe Chef::Config do
129
129
  it "should return given path on non-windows systems" do
130
130
  platform_mock :unix do
131
131
  path = "/etc/chef/cookbooks"
132
- Chef::Config.platform_specific_path(path).should == "/etc/chef/cookbooks"
132
+ Chef::Config.platform_specific_path(path).should == "#{ENV['MICROWAVE_ROOT']}/etc/chef/cookbooks"
133
133
  end
134
134
  end
135
135
 
136
136
  it "should return a windows path on windows systems" do
137
137
  platform_mock :windows do
138
138
  path = "/etc/chef/cookbooks"
139
+ save_microwave_root = ENV['MICROWAVE_ROOT']
140
+ expected_microwave_root = save_microwave_root.gsub(File::SEPARATOR, (File::ALT_SEPARATOR || '\\'))
141
+ ENV.stub!(:[]).with('MICROWAVE_ROOT').and_return(save_microwave_root)
139
142
  ENV.stub!(:[]).with('SYSTEMDRIVE').and_return('C:')
140
143
  # match on a regex that looks for the base path with an optional
141
144
  # system drive at the beginning (c:)
142
145
  # system drive is not hardcoded b/c it can change and b/c it is not present on linux systems
143
- Chef::Config.platform_specific_path(path).should == "C:\\chef\\cookbooks"
146
+ Chef::Config.platform_specific_path(path).should == "C:#{expected_microwave_root}\\chef\\cookbooks"
144
147
  end
145
148
  end
146
149
  end
@@ -160,7 +163,7 @@ describe Chef::Config do
160
163
  backup_path = if windows?
161
164
  "#{ENV['SYSTEMDRIVE']}\\chef\\backup"
162
165
  else
163
- "/var/chef/backup"
166
+ Chef::Config.platform_specific_path("/var/chef/backup")
164
167
  end
165
168
  Chef::Config[:file_backup_path].should == backup_path
166
169
  end
@@ -181,7 +184,7 @@ describe Chef::Config do
181
184
  data_bag_path = if windows?
182
185
  "C:\\chef\\data_bags"
183
186
  else
184
- "/var/chef/data_bags"
187
+ Chef::Config.platform_specific_path("/var/chef/data_bags")
185
188
  end
186
189
 
187
190
  Chef::Config[:data_bag_path].should == data_bag_path
@@ -127,7 +127,7 @@ describe Chef::DataBag do
127
127
  describe "in solo mode" do
128
128
  before do
129
129
  Chef::Config[:solo] = true
130
- Chef::Config[:data_bag_path] = '/var/chef/data_bags'
130
+ Chef::Config[:data_bag_path] = Chef::Config.platform_specific_path('/var/chef/data_bags')
131
131
  end
132
132
 
133
133
  after do
@@ -135,32 +135,32 @@ describe Chef::DataBag do
135
135
  end
136
136
 
137
137
  it "should get the data bag from the data_bag_path" do
138
- File.should_receive(:directory?).with('/var/chef/data_bags').and_return(true)
139
- Dir.should_receive(:glob).with('/var/chef/data_bags/foo/*.json').and_return([])
138
+ File.should_receive(:directory?).with(Chef::Config.platform_specific_path('/var/chef/data_bags')).and_return(true)
139
+ Dir.should_receive(:glob).with(Chef::Config.platform_specific_path('/var/chef/data_bags/foo/*.json')).and_return([])
140
140
  Chef::DataBag.load('foo')
141
141
  end
142
142
 
143
143
  it "should get the data bag from the data_bag_path by symbolic name" do
144
- File.should_receive(:directory?).with('/var/chef/data_bags').and_return(true)
145
- Dir.should_receive(:glob).with('/var/chef/data_bags/foo/*.json').and_return([])
144
+ File.should_receive(:directory?).with(Chef::Config.platform_specific_path('/var/chef/data_bags')).and_return(true)
145
+ Dir.should_receive(:glob).with(Chef::Config.platform_specific_path('/var/chef/data_bags/foo/*.json')).and_return([])
146
146
  Chef::DataBag.load(:foo)
147
147
  end
148
148
 
149
149
  it "should return the data bag" do
150
- File.should_receive(:directory?).with('/var/chef/data_bags').and_return(true)
151
- Dir.stub!(:glob).and_return(["/var/chef/data_bags/foo/bar.json", "/var/chef/data_bags/foo/baz.json"])
152
- IO.should_receive(:read).with('/var/chef/data_bags/foo/bar.json').and_return('{"id": "bar", "name": "Bob Bar" }')
153
- IO.should_receive(:read).with('/var/chef/data_bags/foo/baz.json').and_return('{"id": "baz", "name": "John Baz" }')
150
+ File.should_receive(:directory?).with(Chef::Config.platform_specific_path('/var/chef/data_bags')).and_return(true)
151
+ Dir.stub!(:glob).and_return([Chef::Config.platform_specific_path("/var/chef/data_bags/foo/bar.json"), Chef::Config.platform_specific_path("/var/chef/data_bags/foo/baz.json")])
152
+ IO.should_receive(:read).with(Chef::Config.platform_specific_path('/var/chef/data_bags/foo/bar.json')).and_return('{"id": "bar", "name": "Bob Bar" }')
153
+ IO.should_receive(:read).with(Chef::Config.platform_specific_path('/var/chef/data_bags/foo/baz.json')).and_return('{"id": "baz", "name": "John Baz" }')
154
154
  data_bag = Chef::DataBag.load('foo')
155
155
  data_bag.should == { 'bar' => { 'id' => 'bar', 'name' => 'Bob Bar' }, 'baz' => { 'id' => 'baz', 'name' => 'John Baz' }}
156
156
  end
157
157
 
158
158
  it 'should raise an error if the configured data_bag_path is invalid' do
159
- File.should_receive(:directory?).with('/var/chef/data_bags').and_return(false)
159
+ File.should_receive(:directory?).with(Chef::Config.platform_specific_path('/var/chef/data_bags')).and_return(false)
160
160
 
161
161
  lambda {
162
162
  Chef::DataBag.load('foo')
163
- }.should raise_error Chef::Exceptions::InvalidDataBagPath, "Data bag path '/var/chef/data_bags' is invalid"
163
+ }.should raise_error Chef::Exceptions::InvalidDataBagPath, "Data bag path '#{Chef::Config.platform_specific_path('/var/chef/data_bags')}' is invalid"
164
164
  end
165
165
 
166
166
  end
@@ -58,7 +58,7 @@ describe Chef::Formatters::ErrorInspectors::CompileErrorInspector do
58
58
  "/home/someuser/.multiruby/gems/chef/lib/chef/client.rb:123:in `run'"
59
59
  ]
60
60
  @exception.set_backtrace(@trace)
61
- @path = "/var/chef/cache/cookbooks/syntax-err/recipes/default.rb"
61
+ @path = Chef::Config.platform_specific_path("/var/chef/cache/cookbooks/syntax-err/recipes/default.rb")
62
62
  @inspector = described_class.new(@path, @exception)
63
63
 
64
64
  @expected_filtered_trace = [
@@ -71,16 +71,16 @@ describe Chef::Formatters::ErrorInspectors::CompileErrorInspector do
71
71
 
72
72
  describe "when explaining an error in the compile phase" do
73
73
  before do
74
- Chef::Config.stub!(:cookbook_path).and_return([ "/var/chef/cache/cookbooks" ])
74
+ Chef::Config.stub!(:cookbook_path).and_return([ Chef::Config.platform_specific_path("/var/chef/cache/cookbooks") ])
75
75
  recipe_lines = BAD_RECIPE.split("\n").map {|l| l << "\n" }
76
- IO.should_receive(:readlines).with("/var/chef/cache/cookbooks/syntax-err/recipes/default.rb").and_return(recipe_lines)
76
+ IO.should_receive(:readlines).with(Chef::Config.platform_specific_path("/var/chef/cache/cookbooks/syntax-err/recipes/default.rb")).and_return(recipe_lines)
77
77
  @trace = [
78
- "/var/chef/cache/cookbooks/syntax-err/recipes/default.rb:14:in `from_file'",
79
- "/var/chef/cache/cookbooks/syntax-err/recipes/default.rb:11:in `from_file'",
78
+ Chef::Config.platform_specific_path("/var/chef/cache/cookbooks/syntax-err/recipes/default.rb:14:in `from_file'"),
79
+ Chef::Config.platform_specific_path("/var/chef/cache/cookbooks/syntax-err/recipes/default.rb:11:in `from_file'"),
80
80
  "/usr/local/lib/ruby/gems/chef/lib/chef/client.rb:123:in `run'" # should not display
81
81
  ]
82
82
  @exception.set_backtrace(@trace)
83
- @path = "/var/chef/cache/cookbooks/syntax-err/recipes/default.rb"
83
+ @path = Chef::Config.platform_specific_path("/var/chef/cache/cookbooks/syntax-err/recipes/default.rb")
84
84
  @inspector = described_class.new(@path, @exception)
85
85
  @inspector.add_explanation(@description)
86
86
  end
@@ -123,7 +123,7 @@ describe Chef::Formatters::ErrorInspectors::CompileErrorInspector do
123
123
  "C:/opscode/chef/bin/chef-client:19:in `<main>'"
124
124
  ]
125
125
  @exception.set_backtrace(@trace)
126
- @path = "/var/chef/cache/cookbooks/syntax-err/recipes/default.rb"
126
+ @path = Chef::Config.platform_specific_path("/var/chef/cache/cookbooks/syntax-err/recipes/default.rb")
127
127
  @inspector = described_class.new(@path, @exception)
128
128
  @inspector.add_explanation(@description)
129
129
  end
@@ -181,7 +181,7 @@ describe Chef::Formatters::ErrorInspectors::CompileErrorInspector do
181
181
  "c:/opscode/chef/bin/chef-client:19:in `<main>'"
182
182
  ]
183
183
  @exception.set_backtrace(@trace)
184
- @path = "/var/chef/cache/cookbooks/syntax-err/recipes/default.rb"
184
+ @path = Chef::Config.platform_specific_path("/var/chef/cache/cookbooks/syntax-err/recipes/default.rb")
185
185
  @inspector = described_class.new(@path, @exception)
186
186
  @inspector.add_explanation(@description)
187
187
  end
@@ -38,7 +38,7 @@ describe Chef::Formatters::ErrorInspectors::ResourceFailureInspector do
38
38
  @outputter = Chef::Formatters::Outputter.new(@stdout, STDERR)
39
39
  #@outputter = Chef::Formatters::Outputter.new(STDOUT, STDERR)
40
40
 
41
- Chef::Config.stub!(:cookbook_path).and_return([ "/var/chef/cache" ])
41
+ Chef::Config.stub!(:cookbook_path).and_return([ Chef::Config.platform_specific_path("/var/chef/cache") ])
42
42
  end
43
43
 
44
44
  describe "when explaining an error converging a resource" do
@@ -55,8 +55,8 @@ describe Chef::Formatters::ErrorInspectors::ResourceFailureInspector do
55
55
  end
56
56
 
57
57
  @trace = [
58
- "/var/chef/cache/cookbooks/syntax-err/recipes/default.rb:14:in `from_file'",
59
- "/var/chef/cache/cookbooks/syntax-err/recipes/default.rb:11:in `from_file'",
58
+ Chef::Config.platform_specific_path("/var/chef/cache/cookbooks/syntax-err/recipes/default.rb:14:in `from_file'"),
59
+ Chef::Config.platform_specific_path("/var/chef/cache/cookbooks/syntax-err/recipes/default.rb:11:in `from_file'"),
60
60
  "/usr/local/lib/ruby/gems/chef/lib/chef/client.rb:123:in `run'" # should not display
61
61
  ]
62
62
  @exception = Chef::Exceptions::Package.new("No such package 'non-existing-package'")
@@ -67,8 +67,8 @@ describe Chef::Formatters::ErrorInspectors::ResourceFailureInspector do
67
67
 
68
68
  it "filters chef core code from the backtrace" do
69
69
  @expected_filtered_trace = [
70
- "/var/chef/cache/cookbooks/syntax-err/recipes/default.rb:14:in `from_file'",
71
- "/var/chef/cache/cookbooks/syntax-err/recipes/default.rb:11:in `from_file'",
70
+ Chef::Config.platform_specific_path("/var/chef/cache/cookbooks/syntax-err/recipes/default.rb:14:in `from_file'"),
71
+ Chef::Config.platform_specific_path("/var/chef/cache/cookbooks/syntax-err/recipes/default.rb:11:in `from_file'"),
72
72
  ]
73
73
 
74
74
  @inspector.filtered_bt.should == @expected_filtered_trace
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: microwave
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Jacob
@@ -264,21 +264,23 @@ dependencies:
264
264
  type: :runtime
265
265
  version_requirements: *id014
266
266
  - !ruby/object:Gem::Dependency
267
- name: erubis
267
+ name: moneta
268
268
  prerelease: false
269
269
  requirement: &id015 !ruby/object:Gem::Requirement
270
270
  none: false
271
271
  requirements:
272
- - - ">="
272
+ - - ~>
273
273
  - !ruby/object:Gem::Version
274
- hash: 3
274
+ hash: 7
275
275
  segments:
276
276
  - 0
277
- version: "0"
277
+ - 6
278
+ - 0
279
+ version: 0.6.0
278
280
  type: :runtime
279
281
  version_requirements: *id015
280
282
  - !ruby/object:Gem::Dependency
281
- name: moneta
283
+ name: erubis
282
284
  prerelease: false
283
285
  requirement: &id016 !ruby/object:Gem::Requirement
284
286
  none: false
@@ -453,122 +455,6 @@ files:
453
455
  - Rakefile
454
456
  - LICENSE
455
457
  - README.rdoc
456
- - distro/arch/etc/conf.d/chef-client.conf
457
- - distro/arch/etc/conf.d/chef-expander.conf
458
- - distro/arch/etc/conf.d/chef-server-webui.conf
459
- - distro/arch/etc/conf.d/chef-server.conf
460
- - distro/arch/etc/conf.d/chef-solr.conf
461
- - distro/arch/etc/rc.d/chef-client
462
- - distro/arch/etc/rc.d/chef-expander
463
- - distro/arch/etc/rc.d/chef-server
464
- - distro/arch/etc/rc.d/chef-server-webui
465
- - distro/arch/etc/rc.d/chef-solr
466
- - distro/common/html/chef-client.8.html
467
- - distro/common/html/chef-expander.8.html
468
- - distro/common/html/chef-expanderctl.8.html
469
- - distro/common/html/chef-server-webui.8.html
470
- - distro/common/html/chef-server.8.html
471
- - distro/common/html/chef-solo.8.html
472
- - distro/common/html/chef-solr.8.html
473
- - distro/common/html/knife-bootstrap.1.html
474
- - distro/common/html/knife-client.1.html
475
- - distro/common/html/knife-configure.1.html
476
- - distro/common/html/knife-cookbook-site.1.html
477
- - distro/common/html/knife-cookbook.1.html
478
- - distro/common/html/knife-data-bag.1.html
479
- - distro/common/html/knife-environment.1.html
480
- - distro/common/html/knife-exec.1.html
481
- - distro/common/html/knife-index.1.html
482
- - distro/common/html/knife-node.1.html
483
- - distro/common/html/knife-recipe.1.html
484
- - distro/common/html/knife-role.1.html
485
- - distro/common/html/knife-search.1.html
486
- - distro/common/html/knife-ssh.1.html
487
- - distro/common/html/knife-status.1.html
488
- - distro/common/html/knife-tag.1.html
489
- - distro/common/html/knife.1.html
490
- - distro/common/html/shef.1.html
491
- - distro/common/man/man1/knife-bootstrap.1
492
- - distro/common/man/man1/knife-client.1
493
- - distro/common/man/man1/knife-configure.1
494
- - distro/common/man/man1/knife-cookbook-site.1
495
- - distro/common/man/man1/knife-cookbook.1
496
- - distro/common/man/man1/knife-data-bag.1
497
- - distro/common/man/man1/knife-environment.1
498
- - distro/common/man/man1/knife-exec.1
499
- - distro/common/man/man1/knife-index.1
500
- - distro/common/man/man1/knife-node.1
501
- - distro/common/man/man1/knife-role.1
502
- - distro/common/man/man1/knife-search.1
503
- - distro/common/man/man1/knife-ssh.1
504
- - distro/common/man/man1/knife-status.1
505
- - distro/common/man/man1/knife-tag.1
506
- - distro/common/man/man1/knife.1
507
- - distro/common/man/man1/shef.1
508
- - distro/common/man/man8/chef-client.8
509
- - distro/common/man/man8/chef-expander.8
510
- - distro/common/man/man8/chef-expanderctl.8
511
- - distro/common/man/man8/chef-server-webui.8
512
- - distro/common/man/man8/chef-server.8
513
- - distro/common/man/man8/chef-solo.8
514
- - distro/common/man/man8/chef-solr.8
515
- - distro/common/markdown/man1/knife-bootstrap.mkd
516
- - distro/common/markdown/man1/knife-client.mkd
517
- - distro/common/markdown/man1/knife-configure.mkd
518
- - distro/common/markdown/man1/knife-cookbook-site.mkd
519
- - distro/common/markdown/man1/knife-cookbook.mkd
520
- - distro/common/markdown/man1/knife-data-bag.mkd
521
- - distro/common/markdown/man1/knife-environment.mkd
522
- - distro/common/markdown/man1/knife-exec.mkd
523
- - distro/common/markdown/man1/knife-index.mkd
524
- - distro/common/markdown/man1/knife-node.mkd
525
- - distro/common/markdown/man1/knife-role.mkd
526
- - distro/common/markdown/man1/knife-search.mkd
527
- - distro/common/markdown/man1/knife-ssh.mkd
528
- - distro/common/markdown/man1/knife-status.mkd
529
- - distro/common/markdown/man1/knife-tag.mkd
530
- - distro/common/markdown/man1/knife.mkd
531
- - distro/common/markdown/man1/shef.mkd
532
- - distro/common/markdown/man8/chef-client.mkd
533
- - distro/common/markdown/man8/chef-expander.mkd
534
- - distro/common/markdown/man8/chef-expanderctl.mkd
535
- - distro/common/markdown/man8/chef-server-webui.mkd
536
- - distro/common/markdown/man8/chef-server.mkd
537
- - distro/common/markdown/man8/chef-solo.mkd
538
- - distro/common/markdown/man8/chef-solr.mkd
539
- - distro/common/markdown/README
540
- - distro/debian/etc/default/chef-client
541
- - distro/debian/etc/default/chef-expander
542
- - distro/debian/etc/default/chef-server
543
- - distro/debian/etc/default/chef-server-webui
544
- - distro/debian/etc/default/chef-solr
545
- - distro/debian/etc/init/chef-client.conf
546
- - distro/debian/etc/init/chef-expander.conf
547
- - distro/debian/etc/init/chef-server-webui.conf
548
- - distro/debian/etc/init/chef-server.conf
549
- - distro/debian/etc/init/chef-solr.conf
550
- - distro/debian/etc/init.d/chef-client
551
- - distro/debian/etc/init.d/chef-expander
552
- - distro/debian/etc/init.d/chef-server
553
- - distro/debian/etc/init.d/chef-server-webui
554
- - distro/debian/etc/init.d/chef-solr
555
- - distro/README
556
- - distro/redhat/etc/init.d/chef-client
557
- - distro/redhat/etc/init.d/chef-expander
558
- - distro/redhat/etc/init.d/chef-server
559
- - distro/redhat/etc/init.d/chef-server-webui
560
- - distro/redhat/etc/init.d/chef-solr
561
- - distro/redhat/etc/logrotate.d/chef-client
562
- - distro/redhat/etc/logrotate.d/chef-expander
563
- - distro/redhat/etc/logrotate.d/chef-server
564
- - distro/redhat/etc/logrotate.d/chef-server-webui
565
- - distro/redhat/etc/logrotate.d/chef-solr
566
- - distro/redhat/etc/sysconfig/chef-client
567
- - distro/redhat/etc/sysconfig/chef-expander
568
- - distro/redhat/etc/sysconfig/chef-server
569
- - distro/redhat/etc/sysconfig/chef-server-webui
570
- - distro/redhat/etc/sysconfig/chef-solr
571
- - distro/windows/service_manager.rb
572
458
  - lib/chef.rb
573
459
  - tasks/rspec.rb
574
460
  - spec/data/bad-config.rb
data/distro/README DELETED
@@ -1,2 +0,0 @@
1
- Init scripts meant to be used with a gem installation via the bootstrap
2
- cookbook.
@@ -1,5 +0,0 @@
1
- LOGFILE=/var/log/chef/client.log
2
- CONFIG=/etc/chef/client.rb
3
- INTERVAL=1800
4
- SPLAY=20
5
- CHEF_CLIENT_ARGS="-L $LOGFILE -d -c $CONFIG -i $INTERVAL -s $SPLAY"
@@ -1,8 +0,0 @@
1
- LOGFILE=/var/log/chef/expander.log
2
- CONFIG=/etc/chef/solr.rb
3
- USER=chef
4
- GROUP=chef
5
- # Sleep to give daemon enough time to fully start or stop.
6
- DIETIME=5
7
- STARTTIME=5
8
- CHEF_EXPANDER_ARGS="-d -c $CONFIG -L $LOGFILE -n 1 -i 1"
@@ -1,10 +0,0 @@
1
- LOGFILE=/var/log/chef/server-webui.log
2
- CONFIG=/etc/chef/webui.rb
3
- ADAPTER=thin
4
- PORT=4040
5
- USER=chef
6
- GROUP=chef
7
- # Sleep to give daemon enough time to fully start or stop.
8
- STARTTIME=10
9
- DIETIME=5
10
- CHEF_SERVER_WEBUI_ARGS="-p $PORT -e production -d -a $ADAPTER -L $LOGFILE -C $CONFIG -u $USER -G $GROUP"
@@ -1,10 +0,0 @@
1
- LOGFILE=/var/log/chef/server.log
2
- CONFIG=/etc/chef/server.rb
3
- ADAPTER=thin
4
- PORT=4000
5
- USER=chef
6
- GROUP=chef
7
- # Sleep to give daemon enough time to fully start or stop.
8
- STARTTIME=10
9
- DIETIME=5
10
- CHEF_SERVER_ARGS="-p $PORT -e production -d -a $ADAPTER -L $LOGFILE -C $CONFIG -u $USER -G $GROUP"