chef 12.2.0.rc.1 → 12.2.0.rc.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/cookbook/remote_file_vendor.rb +1 -1
- data/lib/chef/cookbook_manifest.rb +17 -3
- data/lib/chef/cookbook_version.rb +19 -0
- data/lib/chef/mixin/params_validate.rb +19 -42
- data/lib/chef/platform/provider_priority_map.rb +1 -0
- data/lib/chef/policy_builder/policyfile.rb +9 -5
- data/lib/chef/provider/deploy.rb +87 -104
- data/lib/chef/provider/dsc_resource.rb +1 -1
- data/lib/chef/provider/git.rb +0 -4
- data/lib/chef/provider/package/macports.rb +1 -0
- data/lib/chef/resource.rb +0 -9
- data/lib/chef/resource/deploy.rb +217 -52
- data/lib/chef/resource/git.rb +1 -1
- data/lib/chef/resource/lwrp_base.rb +8 -0
- data/lib/chef/resource/macports_package.rb +1 -0
- data/lib/chef/version.rb +1 -1
- data/spec/functional/resource/deploy_revision_spec.rb +0 -35
- data/spec/unit/cookbook/file_vendor_spec.rb +28 -8
- data/spec/unit/cookbook_manifest_spec.rb +19 -2
- data/spec/unit/cookbook_uploader_spec.rb +7 -1
- data/spec/unit/mixin/params_validate_spec.rb +61 -75
- data/spec/unit/policy_builder/policyfile_spec.rb +48 -13
- data/spec/unit/resource/deploy_spec.rb +0 -27
- metadata +2 -2
@@ -30,35 +30,12 @@ describe Chef::Resource::Deploy do
|
|
30
30
|
|
31
31
|
|
32
32
|
class << self
|
33
|
-
|
34
|
-
def resource_has_a_hash_attribute(attr_name)
|
35
|
-
it "has a Hash attribute for #{attr_name.to_s}" do
|
36
|
-
@resource.send(attr_name, {foo: "bar"})
|
37
|
-
expect(@resource.send(attr_name)).to eql({foo: "bar"})
|
38
|
-
expect {@resource.send(attr_name, 8675309)}.to raise_error(ArgumentError)
|
39
|
-
end
|
40
|
-
|
41
|
-
it "the Hash attribute for #{attr_name.to_s} is nillable" do
|
42
|
-
@resource.send(attr_name, {foo: "bar"})
|
43
|
-
expect(@resource.send(attr_name)).to eql({foo: "bar"})
|
44
|
-
@resource.send(attr_name, nil)
|
45
|
-
expect(@resource.send(attr_name)).to eql(nil)
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
33
|
def resource_has_a_string_attribute(attr_name)
|
50
34
|
it "has a String attribute for #{attr_name.to_s}" do
|
51
35
|
@resource.send(attr_name, "this is a string")
|
52
36
|
expect(@resource.send(attr_name)).to eql("this is a string")
|
53
37
|
expect {@resource.send(attr_name, 8675309)}.to raise_error(ArgumentError)
|
54
38
|
end
|
55
|
-
|
56
|
-
it "the String attribute for #{attr_name.to_s} is nillable" do
|
57
|
-
@resource.send(attr_name, "this is a string")
|
58
|
-
expect(@resource.send(attr_name)).to eql("this is a string")
|
59
|
-
@resource.send(attr_name, nil)
|
60
|
-
expect(@resource.send(attr_name)).to eql(nil)
|
61
|
-
end
|
62
39
|
end
|
63
40
|
|
64
41
|
def resource_has_a_boolean_attribute(attr_name, opts={:defaults_to=>false})
|
@@ -212,10 +189,6 @@ describe Chef::Resource::Deploy do
|
|
212
189
|
expect(@resource.symlink_before_migrate).to eq({"wtf?" => "wtf is going on"})
|
213
190
|
end
|
214
191
|
|
215
|
-
resource_has_a_hash_attribute :symlink_before_migrate
|
216
|
-
resource_has_a_hash_attribute :symlinks
|
217
|
-
resource_has_a_hash_attribute :additional_remotes
|
218
|
-
|
219
192
|
resource_has_a_callback_attribute :before_migrate
|
220
193
|
resource_has_a_callback_attribute :before_symlink
|
221
194
|
resource_has_a_callback_attribute :before_restart
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.2.0.rc.
|
4
|
+
version: 12.2.0.rc.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-config
|