chef-zero 2.0.0 → 2.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d2731ca89a7a17e4eddfe989bd8dc57c361105ed
4
- data.tar.gz: f81dabcb437d9e327d547b6723273a7bb1c760c7
3
+ metadata.gz: f6c24fde8bb84962324a79c418978ec93fd52ac8
4
+ data.tar.gz: 71d24e21a84902b5caa06ff2a1d48e69a1615cca
5
5
  SHA512:
6
- metadata.gz: c87db48733d2add9a6de265fddfc99f028051feaf9c2aaef7b849bdde3f02c9d17966ca88fc3df6fc8d44572262a33392aeccc321ce12fff2da25a6831dbacf0
7
- data.tar.gz: bbb68d646e14d774987d46d13e3541b20d1f93813d8a0112525569ef22f1e8b00940e057242ce39f7f773e2ae363751da10dd8152f85ce8814b0d18e8139671e
6
+ metadata.gz: 0ef14b23d22f1adcaf6551f15e505da9fe157e7015bbbaba0ae9448df6205777705501387e2d8a1d26872a42fa3e8e9fec1b3c868896273dd4e9e1424267d44a
7
+ data.tar.gz: 020842c6725b2d9b73c69434b435ca2e1b4cccec446a6f9a854628b9453b46e8f4ecb5f54386875cd799661e9198688d5b24d5f963a80eb614812047ff7679e3
data/README.md CHANGED
@@ -97,26 +97,29 @@ work (show, list, delete, from file, upload, download, diff ...). For example,
97
97
  with +knife-essentials+ (or Chef 11) you can upload everything in the repo:
98
98
 
99
99
  chef-zero/playground> knife upload .
100
- Created remote/cookbooks/blah
101
- Created remote/cookbooks/blork
102
- Created remote/data_bags/foo/
103
- Created remote/data_bags/foo/bar.json
104
- Created remote/data_bags/foo/baz.json
105
- Created remote/data_bags/foo/blarghle.json
106
- Created remote/data_bags/foom/
107
- Created remote/data_bags/foom/x.json
108
- Created remote/data_bags/widdle/
109
- Created remote/data_bags/widdle/blank.json
110
- Created remote/data_bags/widdle/wow.json
111
- Created remote/environments/desert.json
112
- Created remote/environments/rainforest.json
113
- Created remote/environments/semi_arid_plains.json
100
+ Created nodes/desktop.json
101
+ Created data_bags/dns
102
+ Created environments/production.json
103
+ Created nodes/lb.json
104
+ Created nodes/dns.json
105
+ Created nodes/ldap.json
106
+ Created nodes/www.json
107
+ Created data_bags/dns/services.json
108
+ Created environments/staging.json
109
+ Created data_bags/passwords
110
+ Created data_bags/users
111
+ Created data_bags/users/jkeiser.json
112
+ Created data_bags/passwords/github.json
113
+ Created data_bags/passwords/twitter.json
114
+ Created data_bags/users/schisamo.json
115
+ Created data_bags/users/sethvargo.json
116
+ Created cookbooks/apache2
117
+ Created cookbooks/php
114
118
 
115
119
  chef-zero/playground> knife environment list
116
120
  _default
117
- desert
118
- rainforest
119
- semi_arid_plains
121
+ production
122
+ staging
120
123
 
121
124
  To use it in your own repository, create a `knife.rb` like so:
122
125
 
@@ -13,7 +13,7 @@ module ChefZero
13
13
  list_data(request, ['nodes']).each do |name|
14
14
  node = JSON.parse(get_data(request, ['nodes', name]), :create_additions => false)
15
15
  if node['chef_environment'] == request.rest_path[1]
16
- result[name] = build_uri(request.base_uri, 'nodes', name)
16
+ result[name] = build_uri(request.base_uri, ['nodes', name])
17
17
  end
18
18
  end
19
19
  json_response(200, result)
@@ -296,7 +296,7 @@ module ChefZero
296
296
  end
297
297
 
298
298
  def clear_data
299
- @data_store.clear
299
+ data_store.clear
300
300
  end
301
301
 
302
302
  def request_handler(&block)
@@ -1,3 +1,3 @@
1
1
  module ChefZero
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-17 00:00:00.000000000 Z
11
+ date: 2014-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-log
@@ -119,6 +119,8 @@ files:
119
119
  - LICENSE
120
120
  - README.md
121
121
  - Rakefile
122
+ - bin/chef-zero
123
+ - lib/chef_zero.rb
122
124
  - lib/chef_zero/cookbook_data.rb
123
125
  - lib/chef_zero/data_normalizer.rb
124
126
  - lib/chef_zero/data_store/data_already_exists_error.rb
@@ -171,12 +173,10 @@ files:
171
173
  - lib/chef_zero/solr/solr_doc.rb
172
174
  - lib/chef_zero/solr/solr_parser.rb
173
175
  - lib/chef_zero/version.rb
174
- - lib/chef_zero.rb
175
176
  - spec/run.rb
176
177
  - spec/search_spec.rb
177
178
  - spec/support/pedant.rb
178
179
  - spec/support/stickywicket.pem
179
- - bin/chef-zero
180
180
  homepage: http://www.opscode.com
181
181
  licenses:
182
182
  - Apache 2.0
@@ -197,9 +197,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  version: '0'
198
198
  requirements: []
199
199
  rubyforge_project:
200
- rubygems_version: 2.1.11
200
+ rubygems_version: 2.2.0
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: Self-contained, easy-setup, fast-start in-memory Chef server for testing
204
204
  and solo setup purposes
205
205
  test_files: []
206
+ has_rdoc: