knife-inspect 0.7.0 → 0.7.1
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.
- checksums.yaml +4 -4
- data/.travis.yml +2 -5
- data/HISTORY.md +5 -0
- data/README.md +10 -0
- data/lib/chef/knife/data_bag_inspect.rb +2 -2
- data/lib/health_inspector/version.rb +1 -1
- data/spec/data_bag_item_spec.rb +1 -1
- data/spec/environment_spec.rb +1 -1
- data/spec/role_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -6
- data/spec/chef-repo/.chef/client.pem +0 -0
- data/spec/chef-repo/.chef/knife.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 608b6f567c14d1acc4050055b55135c26ba012a7
|
4
|
+
data.tar.gz: 4387aaaf508725bf67d3e93cb05ebd1e9a3bfe02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3ee1759814c36e62c058754a9424c8f6716e05917988286466cf2b359f5f937feea458c566aa8bb73127fa92522287bcb5852553de1d54d57c7a8a284e4c4f5
|
7
|
+
data.tar.gz: 0bd7fb3ca37b2b465851ea0a65ab100469b67e7095ad1fe75605827095f39665b82bc9405c4f98b157024058806f4b7ee7ce398f3192e2b72e34370fc1547fef
|
data/.travis.yml
CHANGED
data/HISTORY.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
[](http://travis-ci.org/bmarini/knife-inspect)
|
2
|
+
[](https://codeclimate.com/github/bmarini/knife-inspect)
|
2
3
|
|
3
4
|
## Summary
|
4
5
|
|
@@ -41,3 +42,12 @@ So far it checks if...
|
|
41
42
|
* your data bag items are in sync
|
42
43
|
* your environments are in sync
|
43
44
|
* your roles are in sync
|
45
|
+
|
46
|
+
## Contributing
|
47
|
+
|
48
|
+
1. Fork it
|
49
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
50
|
+
3. Do not bump the version number
|
51
|
+
4. Commit your changes (`git commit -am 'Add some feature'`)
|
52
|
+
5. Push to the branch (`git push origin my-new-feature`)
|
53
|
+
6. Create new Pull Request
|
@@ -26,8 +26,8 @@ class Chef
|
|
26
26
|
exit validator.validate_item( validator.load_item(bag_name) )
|
27
27
|
|
28
28
|
when 0 # We are inspecting all the data bags
|
29
|
-
HealthInspector::Checklists::DataBags.run(self)
|
30
|
-
|
29
|
+
exit HealthInspector::Checklists::DataBags.run(self) &&
|
30
|
+
HealthInspector::Checklists::DataBagItems.run(self)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
data/spec/data_bag_item_spec.rb
CHANGED
data/spec/environment_spec.rb
CHANGED
@@ -4,7 +4,7 @@ describe HealthInspector::Checklists::Environment do
|
|
4
4
|
let(:pairing) { described_class.new(health_inspector_context) }
|
5
5
|
|
6
6
|
it_behaves_like "a chef model"
|
7
|
-
it_behaves_like "a chef model that can be
|
7
|
+
it_behaves_like "a chef model that can be represented in json"
|
8
8
|
|
9
9
|
it "should ignore _default environment if it only exists on server" do
|
10
10
|
pairing.name = "_default"
|
data/spec/role_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -49,7 +49,7 @@ shared_examples "a chef model" do
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
shared_examples "a chef model that can be
|
52
|
+
shared_examples "a chef model that can be represented in json" do
|
53
53
|
let(:pairing) { described_class.new(health_inspector_context, :name => "dummy") }
|
54
54
|
|
55
55
|
it "should detect if an item is different" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-inspect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Karékinian
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-01-
|
12
|
+
date: 2014-01-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -120,8 +120,6 @@ files:
|
|
120
120
|
- lib/health_inspector/inspector.rb
|
121
121
|
- lib/health_inspector/pairing.rb
|
122
122
|
- lib/health_inspector/version.rb
|
123
|
-
- spec/chef-repo/.chef/client.pem
|
124
|
-
- spec/chef-repo/.chef/knife.rb
|
125
123
|
- spec/cookbook_spec.rb
|
126
124
|
- spec/data_bag_item_spec.rb
|
127
125
|
- spec/data_bag_spec.rb
|
@@ -153,8 +151,6 @@ signing_key:
|
|
153
151
|
specification_version: 4
|
154
152
|
summary: Inspect your chef repo as it is compared to what is on your chef server
|
155
153
|
test_files:
|
156
|
-
- spec/chef-repo/.chef/client.pem
|
157
|
-
- spec/chef-repo/.chef/knife.rb
|
158
154
|
- spec/cookbook_spec.rb
|
159
155
|
- spec/data_bag_item_spec.rb
|
160
156
|
- spec/data_bag_spec.rb
|
File without changes
|