chef 11.4.4 → 11.6.0.hotfix.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (504) hide show
  1. data/README.md +1 -1
  2. data/Rakefile +18 -1
  3. data/bin/chef-service-manager +37 -0
  4. data/distro/common/html/chef-client.8.html +4 -4
  5. data/distro/common/html/chef-expander.8.html +4 -4
  6. data/distro/common/html/chef-expanderctl.8.html +4 -4
  7. data/distro/common/html/chef-server-webui.8.html +4 -4
  8. data/distro/common/html/chef-server.8.html +4 -4
  9. data/distro/common/html/chef-shell.1.html +4 -4
  10. data/distro/common/html/chef-solo.8.html +12 -18
  11. data/distro/common/html/chef-solr.8.html +4 -4
  12. data/distro/common/html/knife-bootstrap.1.html +4 -4
  13. data/distro/common/html/knife-client.1.html +4 -4
  14. data/distro/common/html/knife-configure.1.html +4 -4
  15. data/distro/common/html/knife-cookbook-site.1.html +4 -4
  16. data/distro/common/html/knife-cookbook.1.html +7 -10
  17. data/distro/common/html/knife-data-bag.1.html +7 -10
  18. data/distro/common/html/knife-environment.1.html +6 -8
  19. data/distro/common/html/knife-exec.1.html +4 -4
  20. data/distro/common/html/knife-index.1.html +4 -4
  21. data/distro/common/html/knife-node.1.html +4 -4
  22. data/distro/common/html/knife-role.1.html +4 -4
  23. data/distro/common/html/knife-search.1.html +4 -4
  24. data/distro/common/html/knife-ssh.1.html +4 -4
  25. data/distro/common/html/knife-status.1.html +4 -4
  26. data/distro/common/html/knife-tag.1.html +4 -4
  27. data/distro/common/html/knife.1.html +4 -4
  28. data/distro/common/man/man1/chef-shell.1 +1 -1
  29. data/distro/common/man/man1/knife-bootstrap.1 +1 -1
  30. data/distro/common/man/man1/knife-client.1 +1 -1
  31. data/distro/common/man/man1/knife-configure.1 +1 -1
  32. data/distro/common/man/man1/knife-cookbook-site.1 +1 -1
  33. data/distro/common/man/man1/knife-cookbook.1 +2 -15
  34. data/distro/common/man/man1/knife-data-bag.1 +2 -15
  35. data/distro/common/man/man1/knife-environment.1 +2 -12
  36. data/distro/common/man/man1/knife-exec.1 +1 -1
  37. data/distro/common/man/man1/knife-index.1 +1 -1
  38. data/distro/common/man/man1/knife-node.1 +1 -1
  39. data/distro/common/man/man1/knife-role.1 +1 -1
  40. data/distro/common/man/man1/knife-search.1 +1 -1
  41. data/distro/common/man/man1/knife-ssh.1 +1 -1
  42. data/distro/common/man/man1/knife-status.1 +1 -1
  43. data/distro/common/man/man1/knife-tag.1 +1 -1
  44. data/distro/common/man/man1/knife.1 +1 -1
  45. data/distro/common/man/man8/chef-client.8 +1 -1
  46. data/distro/common/man/man8/chef-expander.8 +1 -1
  47. data/distro/common/man/man8/chef-expanderctl.8 +1 -1
  48. data/distro/common/man/man8/chef-server-webui.8 +1 -1
  49. data/distro/common/man/man8/chef-server.8 +1 -1
  50. data/distro/common/man/man8/chef-solo.8 +4 -36
  51. data/distro/common/man/man8/chef-solr.8 +1 -1
  52. data/distro/debian/etc/init.d/chef-client +4 -2
  53. data/distro/windows/service_manager.rb +2 -146
  54. data/lib/chef.rb +1 -1
  55. data/lib/chef/application.rb +5 -12
  56. data/lib/chef/application/apply.rb +2 -0
  57. data/lib/chef/application/client.rb +12 -12
  58. data/lib/chef/application/knife.rb +2 -2
  59. data/lib/chef/application/solo.rb +4 -5
  60. data/lib/chef/application/windows_service.rb +113 -56
  61. data/lib/chef/application/windows_service_manager.rb +179 -0
  62. data/lib/chef/chef_fs.rb +2 -4
  63. data/lib/chef/chef_fs/chef_fs_data_store.rb +371 -0
  64. data/lib/chef/chef_fs/command_line.rb +145 -93
  65. data/lib/chef/chef_fs/config.rb +205 -0
  66. data/lib/chef/chef_fs/data_handler/acl_data_handler.rb +26 -0
  67. data/lib/chef/chef_fs/data_handler/client_data_handler.rb +38 -0
  68. data/lib/chef/chef_fs/data_handler/container_data_handler.rb +29 -0
  69. data/lib/chef/chef_fs/data_handler/cookbook_data_handler.rb +38 -0
  70. data/lib/chef/chef_fs/data_handler/data_bag_item_data_handler.rb +56 -0
  71. data/lib/chef/chef_fs/data_handler/data_handler_base.rb +128 -0
  72. data/lib/chef/chef_fs/data_handler/environment_data_handler.rb +40 -0
  73. data/lib/chef/chef_fs/data_handler/group_data_handler.rb +51 -0
  74. data/lib/chef/chef_fs/data_handler/node_data_handler.rb +36 -0
  75. data/lib/chef/chef_fs/data_handler/role_data_handler.rb +40 -0
  76. data/lib/chef/chef_fs/data_handler/user_data_handler.rb +27 -0
  77. data/lib/chef/chef_fs/file_system.rb +195 -127
  78. data/lib/chef/chef_fs/file_system/acl_dir.rb +64 -0
  79. data/lib/chef/chef_fs/file_system/acl_entry.rb +58 -0
  80. data/lib/chef/chef_fs/file_system/acls_dir.rb +68 -0
  81. data/lib/chef/chef_fs/file_system/already_exists_error.rb +31 -0
  82. data/lib/chef/chef_fs/file_system/base_fs_object.rb +98 -39
  83. data/lib/chef/chef_fs/file_system/chef_repository_file_system_cookbook_dir.rb +85 -0
  84. data/lib/chef/chef_fs/file_system/chef_repository_file_system_cookbook_entry.rb +71 -0
  85. data/lib/chef/chef_fs/file_system/chef_repository_file_system_cookbooks_dir.rb +55 -0
  86. data/lib/chef/chef_fs/file_system/chef_repository_file_system_data_bags_dir.rb +36 -0
  87. data/lib/chef/chef_fs/file_system/chef_repository_file_system_entry.rb +14 -63
  88. data/lib/chef/chef_fs/file_system/chef_repository_file_system_root_dir.rb +93 -3
  89. data/lib/chef/chef_fs/file_system/chef_server_root_dir.rb +35 -9
  90. data/lib/chef/chef_fs/file_system/cookbook_dir.rb +67 -32
  91. data/lib/chef/chef_fs/file_system/cookbook_file.rb +13 -6
  92. data/lib/chef/chef_fs/file_system/cookbook_frozen_error.rb +31 -0
  93. data/lib/chef/chef_fs/file_system/cookbooks_acl_dir.rb +41 -0
  94. data/lib/chef/chef_fs/file_system/cookbooks_dir.rb +102 -21
  95. data/lib/chef/chef_fs/file_system/data_bag_dir.rb +12 -21
  96. data/lib/chef/chef_fs/file_system/data_bags_dir.rb +14 -8
  97. data/lib/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb +36 -0
  98. data/lib/chef/chef_fs/file_system/environments_dir.rb +60 -0
  99. data/lib/chef/chef_fs/file_system/file_system_entry.rb +8 -8
  100. data/lib/chef/chef_fs/file_system/file_system_error.rb +3 -1
  101. data/lib/chef/chef_fs/file_system/memory_dir.rb +52 -0
  102. data/lib/chef/chef_fs/file_system/memory_file.rb +17 -0
  103. data/lib/chef/chef_fs/file_system/memory_root.rb +21 -0
  104. data/lib/chef/chef_fs/file_system/multiplexed_dir.rb +48 -0
  105. data/lib/chef/chef_fs/file_system/must_delete_recursively_error.rb +2 -2
  106. data/lib/chef/chef_fs/file_system/nodes_dir.rb +17 -9
  107. data/lib/chef/chef_fs/file_system/nonexistent_fs_object.rb +0 -4
  108. data/lib/chef/chef_fs/file_system/not_found_error.rb +2 -2
  109. data/lib/chef/chef_fs/file_system/operation_failed_error.rb +34 -0
  110. data/lib/chef/chef_fs/file_system/operation_not_allowed_error.rb +48 -0
  111. data/lib/chef/chef_fs/file_system/rest_list_dir.rb +42 -13
  112. data/lib/chef/chef_fs/file_system/rest_list_entry.rb +81 -27
  113. data/lib/chef/chef_fs/knife.rb +68 -29
  114. data/lib/chef/chef_fs/parallelizer.rb +129 -0
  115. data/lib/chef/chef_fs/path_utils.rb +29 -3
  116. data/lib/chef/chef_fs/raw_request.rb +79 -0
  117. data/lib/chef/client.rb +46 -20
  118. data/lib/chef/config.rb +59 -61
  119. data/lib/chef/cookbook/chefignore.rb +2 -1
  120. data/lib/chef/cookbook/synchronizer.rb +8 -6
  121. data/lib/chef/cookbook/syntax_check.rb +17 -2
  122. data/lib/chef/cookbook_uploader.rb +10 -1
  123. data/lib/chef/cookbook_version.rb +0 -109
  124. data/lib/chef/data_bag.rb +15 -6
  125. data/lib/chef/deprecation/mixin/template.rb +49 -0
  126. data/lib/chef/deprecation/provider/cookbook_file.rb +55 -0
  127. data/lib/chef/deprecation/provider/file.rb +197 -0
  128. data/lib/chef/deprecation/provider/remote_file.rb +86 -0
  129. data/lib/chef/deprecation/provider/template.rb +63 -0
  130. data/lib/chef/deprecation/warnings.rb +38 -0
  131. data/lib/chef/encrypted_data_bag_item.rb +153 -61
  132. data/lib/chef/environment.rb +34 -3
  133. data/lib/chef/event_dispatch/base.rb +3 -0
  134. data/lib/chef/exceptions.rb +27 -2
  135. data/lib/chef/file_access_control/unix.rb +64 -7
  136. data/lib/chef/file_access_control/windows.rb +22 -11
  137. data/lib/chef/file_content_management/content_base.rb +56 -0
  138. data/lib/chef/file_content_management/deploy.rb +38 -0
  139. data/lib/chef/file_content_management/deploy/cp.rb +48 -0
  140. data/lib/chef/file_content_management/deploy/mv_unix.rb +77 -0
  141. data/lib/chef/file_content_management/deploy/mv_windows.rb +95 -0
  142. data/lib/chef/file_content_management/tempfile.rb +61 -0
  143. data/lib/chef/formatters/doc.rb +1 -1
  144. data/lib/chef/formatters/error_descriptor.rb +5 -4
  145. data/lib/chef/formatters/error_inspectors/cookbook_resolve_error_inspector.rb +23 -3
  146. data/lib/chef/formatters/error_inspectors/registration_error_inspector.rb +4 -0
  147. data/lib/chef/json_compat.rb +3 -0
  148. data/lib/chef/knife.rb +12 -3
  149. data/lib/chef/knife/bootstrap.rb +46 -2
  150. data/lib/chef/knife/bootstrap/archlinux-gems.erb +3 -3
  151. data/lib/chef/knife/bootstrap/centos5-gems.erb +3 -3
  152. data/lib/chef/knife/bootstrap/chef-full.erb +4 -4
  153. data/lib/chef/knife/bootstrap/fedora13-gems.erb +3 -3
  154. data/lib/chef/knife/bootstrap/ubuntu10.04-apt.erb +3 -3
  155. data/lib/chef/knife/bootstrap/ubuntu10.04-gems.erb +3 -3
  156. data/lib/chef/knife/bootstrap/ubuntu12.04-gems.erb +3 -3
  157. data/lib/chef/knife/client_show.rb +2 -5
  158. data/lib/chef/knife/configure.rb +3 -3
  159. data/lib/chef/knife/cookbook_create.rb +6 -5
  160. data/lib/chef/knife/cookbook_download.rb +13 -5
  161. data/lib/chef/knife/cookbook_site_share.rb +1 -0
  162. data/lib/chef/knife/cookbook_test.rb +1 -0
  163. data/lib/chef/knife/cookbook_upload.rb +4 -9
  164. data/lib/chef/knife/core/bootstrap_context.rb +10 -4
  165. data/lib/chef/knife/core/generic_presenter.rb +16 -0
  166. data/lib/chef/knife/core/node_editor.rb +1 -1
  167. data/lib/chef/knife/core/subcommand_loader.rb +43 -12
  168. data/lib/chef/knife/core/ui.rb +19 -4
  169. data/lib/chef/knife/delete.rb +76 -9
  170. data/lib/chef/knife/deps.rb +139 -0
  171. data/lib/chef/knife/diff.rb +22 -5
  172. data/lib/chef/knife/download.rb +16 -3
  173. data/lib/chef/knife/edit.rb +76 -0
  174. data/lib/chef/knife/environment_show.rb +2 -7
  175. data/lib/chef/knife/list.rb +91 -47
  176. data/lib/chef/knife/node_run_list_set.rb +66 -0
  177. data/lib/chef/knife/node_show.rb +1 -7
  178. data/lib/chef/knife/raw.rb +20 -64
  179. data/lib/chef/knife/role_show.rb +2 -4
  180. data/lib/chef/knife/search.rb +5 -6
  181. data/lib/chef/knife/show.rb +34 -11
  182. data/lib/chef/knife/ssh.rb +8 -0
  183. data/lib/chef/knife/upload.rb +23 -4
  184. data/lib/chef/knife/user_show.rb +2 -5
  185. data/lib/chef/knife/xargs.rb +265 -0
  186. data/lib/chef/log.rb +2 -2
  187. data/lib/chef/mixin/file_class.rb +0 -9
  188. data/lib/chef/mixin/language_include_recipe.rb +1 -1
  189. data/lib/chef/mixin/params_validate.rb +19 -9
  190. data/lib/chef/mixin/template.rb +126 -36
  191. data/lib/chef/mixin/windows_architecture_helper.rb +91 -0
  192. data/lib/chef/monkey_patches/file.rb +26 -0
  193. data/lib/chef/monkey_patches/net-ssh-multi.rb +140 -0
  194. data/lib/chef/monkey_patches/securerandom.rb +44 -0
  195. data/lib/chef/monologger.rb +93 -0
  196. data/lib/chef/node.rb +4 -0
  197. data/lib/chef/platform.rb +4 -490
  198. data/lib/chef/platform/provider_mapping.rb +529 -0
  199. data/lib/chef/{monkey_patches/dir.rb → platform/query_helpers.rb} +25 -19
  200. data/lib/chef/provider.rb +12 -9
  201. data/lib/chef/provider/batch.rb +35 -0
  202. data/lib/chef/provider/cookbook_file.rb +9 -78
  203. data/lib/chef/provider/cookbook_file/content.rb +49 -0
  204. data/lib/chef/provider/deploy.rb +24 -20
  205. data/lib/chef/provider/deploy/revision.rb +27 -0
  206. data/lib/chef/provider/directory.rb +19 -22
  207. data/lib/chef/provider/execute.rb +22 -5
  208. data/lib/chef/provider/file.rb +299 -217
  209. data/lib/chef/provider/file/content.rb +39 -0
  210. data/lib/chef/provider/git.rb +76 -43
  211. data/lib/chef/provider/group/usermod.rb +2 -2
  212. data/lib/chef/provider/ifconfig.rb +25 -35
  213. data/lib/chef/provider/ifconfig/debian.rb +71 -0
  214. data/lib/chef/provider/ifconfig/redhat.rb +47 -0
  215. data/lib/chef/provider/link.rb +10 -3
  216. data/lib/chef/provider/mount.rb +1 -1
  217. data/lib/chef/provider/mount/mount.rb +8 -3
  218. data/lib/chef/provider/mount/windows.rb +4 -1
  219. data/lib/chef/provider/package/portage.rb +9 -4
  220. data/lib/chef/provider/package/rubygems.rb +45 -10
  221. data/lib/chef/provider/package/smartos.rb +47 -36
  222. data/lib/chef/provider/package/yum.rb +19 -12
  223. data/lib/chef/provider/package/zypper.rb +45 -55
  224. data/lib/chef/provider/powershell_script.rb +77 -0
  225. data/lib/chef/provider/remote_directory.rb +5 -6
  226. data/lib/chef/provider/remote_file.rb +12 -108
  227. data/lib/chef/provider/remote_file/cache_control_data.rb +165 -0
  228. data/lib/chef/provider/remote_file/content.rb +75 -0
  229. data/lib/chef/provider/remote_file/fetcher.rb +43 -0
  230. data/lib/chef/provider/remote_file/ftp.rb +183 -0
  231. data/lib/chef/provider/remote_file/http.rb +124 -0
  232. data/lib/chef/provider/remote_file/local_file.rb +47 -0
  233. data/lib/chef/provider/route.rb +6 -2
  234. data/lib/chef/provider/script.rb +14 -2
  235. data/lib/chef/provider/service/macosx.rb +16 -10
  236. data/lib/chef/provider/service/solaris.rb +6 -5
  237. data/lib/chef/provider/template.rb +16 -78
  238. data/lib/chef/provider/template/content.rb +61 -0
  239. data/lib/chef/provider/user/solaris.rb +90 -0
  240. data/lib/chef/provider/user/useradd.rb +76 -63
  241. data/lib/chef/provider/windows_script.rb +73 -0
  242. data/lib/chef/providers.rb +16 -0
  243. data/lib/chef/resource.rb +23 -2
  244. data/lib/chef/resource/batch.rb +31 -0
  245. data/lib/chef/resource/conditional.rb +4 -0
  246. data/lib/chef/resource/conditional_action_not_nothing.rb +48 -0
  247. data/lib/chef/resource/file.rb +31 -3
  248. data/lib/chef/resource/link.rb +17 -0
  249. data/lib/chef/resource/lwrp_base.rb +1 -1
  250. data/lib/chef/resource/mount.rb +29 -2
  251. data/lib/chef/resource/powershell_script.rb +31 -0
  252. data/lib/chef/resource/remote_file.rb +47 -1
  253. data/lib/chef/resource/route.rb +1 -1
  254. data/lib/chef/resource/template.rb +145 -0
  255. data/lib/chef/resource/windows_script.rb +62 -0
  256. data/lib/chef/resource_collection.rb +45 -11
  257. data/lib/chef/resource_reporter.rb +81 -52
  258. data/lib/chef/resources.rb +2 -0
  259. data/lib/chef/rest.rb +13 -4
  260. data/lib/chef/rest/rest_request.rb +5 -1
  261. data/lib/chef/run_context/cookbook_compiler.rb +3 -3
  262. data/lib/chef/run_list/run_list_expansion.rb +1 -1
  263. data/lib/chef/run_lock.rb +7 -1
  264. data/lib/chef/runner.rb +0 -1
  265. data/lib/chef/scan_access_control.rb +6 -1
  266. data/lib/chef/search/query.rb +2 -2
  267. data/lib/chef/shell/shell_session.rb +2 -2
  268. data/lib/chef/util/backup.rb +84 -0
  269. data/lib/chef/util/diff.rb +145 -0
  270. data/lib/chef/util/file_edit.rb +1 -1
  271. data/lib/chef/util/selinux.rb +100 -0
  272. data/lib/chef/util/windows/net_user.rb +14 -1
  273. data/lib/chef/util/windows/volume.rb +2 -2
  274. data/lib/chef/version.rb +1 -1
  275. data/lib/chef/version/platform.rb +42 -0
  276. data/lib/chef/version_class.rb +1 -1
  277. data/lib/chef/version_constraint.rb +6 -5
  278. data/lib/chef/version_constraint/platform.rb +26 -0
  279. data/lib/chef/win32/api/file.rb +8 -2
  280. data/lib/chef/win32/version.rb +25 -8
  281. data/spec/data/apt/chef-integration-test-1.0/debian/changelog +5 -0
  282. data/spec/data/apt/chef-integration-test-1.0/debian/compat +1 -0
  283. data/spec/data/apt/chef-integration-test-1.0/debian/control +13 -0
  284. data/spec/data/apt/chef-integration-test-1.0/debian/copyright +34 -0
  285. data/spec/data/apt/chef-integration-test-1.0/debian/files +1 -0
  286. data/spec/data/apt/chef-integration-test-1.0/debian/rules +13 -0
  287. data/spec/data/apt/chef-integration-test-1.0/debian/source/format +1 -0
  288. data/spec/data/apt/chef-integration-test-1.1/debian/changelog +11 -0
  289. data/spec/data/apt/chef-integration-test-1.1/debian/compat +1 -0
  290. data/spec/data/apt/chef-integration-test-1.1/debian/control +13 -0
  291. data/spec/data/apt/chef-integration-test-1.1/debian/copyright +34 -0
  292. data/spec/data/apt/chef-integration-test-1.1/debian/files +1 -0
  293. data/spec/data/apt/chef-integration-test-1.1/debian/rules +13 -0
  294. data/spec/data/apt/chef-integration-test-1.1/debian/source/format +1 -0
  295. data/spec/data/apt/chef-integration-test_1.0-1_amd64.changes +22 -0
  296. data/spec/data/apt/chef-integration-test_1.0-1_amd64.deb +0 -0
  297. data/spec/data/apt/chef-integration-test_1.0.orig.tar.gz +0 -0
  298. data/spec/data/apt/chef-integration-test_1.1-1_amd64.changes +22 -0
  299. data/spec/data/apt/chef-integration-test_1.1-1_amd64.deb +0 -0
  300. data/spec/data/apt/chef-integration-test_1.1.orig.tar.gz +0 -0
  301. data/spec/data/apt/var/www/apt/conf/distributions +7 -0
  302. data/spec/data/apt/var/www/apt/conf/incoming +4 -0
  303. data/spec/data/apt/var/www/apt/conf/pulls +3 -0
  304. data/spec/data/apt/var/www/apt/db/checksums.db +0 -0
  305. data/spec/data/apt/var/www/apt/db/contents.cache.db +0 -0
  306. data/spec/data/apt/var/www/apt/db/packages.db +0 -0
  307. data/spec/data/apt/var/www/apt/db/references.db +0 -0
  308. data/spec/data/apt/var/www/apt/db/release.caches.db +0 -0
  309. data/spec/data/apt/var/www/apt/db/version +4 -0
  310. data/spec/data/apt/var/www/apt/dists/sid/Release +19 -0
  311. data/spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages +16 -0
  312. data/spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages.gz +0 -0
  313. data/spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Release +5 -0
  314. data/spec/data/apt/var/www/apt/dists/sid/main/binary-i386/Packages +0 -0
  315. data/spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.0-1_amd64.deb +0 -0
  316. data/spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.1-1_amd64.deb +0 -0
  317. data/spec/data/bootstrap/encrypted_data_bag_secret +1 -0
  318. data/spec/data/bootstrap/secret.erb +9 -0
  319. data/spec/data/cookbooks/ignorken/recipes/default.rb +1 -0
  320. data/spec/data/cookbooks/ignorken/recipes/ignoreme.rb +2 -0
  321. data/spec/data/cookbooks/openldap/files/default/.dotfile +1 -0
  322. data/spec/data/cookbooks/openldap/files/default/.ssh/id_rsa +1 -0
  323. data/spec/data/cookbooks/openldap/files/default/remotedir/.a_dotdir/.a_dotfile_in_a_dotdir +1 -0
  324. data/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/.a_dotfile +1 -0
  325. data/spec/data/cookbooks/openldap/templates/default/all_windows_line_endings.erb +4 -0
  326. data/spec/data/cookbooks/openldap/templates/default/helper_test.erb +1 -0
  327. data/spec/data/cookbooks/openldap/templates/default/helpers_via_partial_test.erb +1 -0
  328. data/spec/data/cookbooks/openldap/templates/default/no_windows_line_endings.erb +4 -0
  329. data/spec/data/cookbooks/openldap/templates/default/some_windows_line_endings.erb +4 -0
  330. data/spec/data/cookbooks/preseed/files/default/preseed-file.seed +1 -0
  331. data/spec/data/cookbooks/preseed/templates/default/preseed-template.seed +1 -0
  332. data/spec/data/file-providers-method-snapshot-chef-11-4.json +127 -0
  333. data/spec/data/git_bundles/example-repo.gitbundle +0 -0
  334. data/spec/data/knife-home/.chef/plugins/knife/example_home_subcommand.rb +0 -0
  335. data/spec/data/knife_subcommand/test_yourself.rb +8 -0
  336. data/spec/data/null_config.rb +1 -0
  337. data/spec/data/partial_one.erb +1 -1
  338. data/spec/data/remote_file/nyan_cat.png.gz +0 -0
  339. data/spec/functional/file_content_management/deploy_strategies_spec.rb +238 -0
  340. data/spec/functional/knife/exec_spec.rb +2 -2
  341. data/spec/functional/provider/remote_file/cache_control_data_spec.rb +101 -0
  342. data/spec/functional/resource/batch_spec.rb +64 -0
  343. data/spec/functional/resource/cookbook_file_spec.rb +2 -3
  344. data/spec/functional/resource/deploy_revision_spec.rb +180 -0
  345. data/spec/functional/resource/directory_spec.rb +2 -2
  346. data/spec/functional/resource/file_spec.rb +17 -1
  347. data/spec/functional/resource/git_spec.rb +259 -0
  348. data/spec/functional/resource/link_spec.rb +422 -388
  349. data/spec/functional/resource/package_spec.rb +297 -0
  350. data/spec/functional/resource/powershell_spec.rb +188 -0
  351. data/spec/functional/resource/registry_spec.rb +8 -4
  352. data/spec/functional/resource/remote_directory_spec.rb +2 -2
  353. data/spec/functional/resource/remote_file_spec.rb +97 -29
  354. data/spec/functional/resource/template_spec.rb +173 -17
  355. data/spec/functional/resource/user_spec.rb +547 -0
  356. data/spec/functional/run_lock_spec.rb +5 -0
  357. data/spec/functional/shell_spec.rb +2 -1
  358. data/spec/functional/win32/service_manager_spec.rb +269 -0
  359. data/spec/functional/win32/versions_spec.rb +78 -0
  360. data/spec/integration/knife/chef_repo_path_spec.rb +805 -0
  361. data/spec/integration/knife/chef_repository_file_system_spec.rb +276 -0
  362. data/spec/integration/knife/chefignore_spec.rb +271 -0
  363. data/spec/integration/knife/delete_spec.rb +944 -0
  364. data/spec/integration/knife/deps_spec.rb +648 -0
  365. data/spec/integration/knife/diff_spec.rb +536 -0
  366. data/spec/integration/knife/download_spec.rb +962 -0
  367. data/spec/integration/knife/list_spec.rb +633 -0
  368. data/spec/integration/knife/raw_spec.rb +166 -0
  369. data/spec/integration/knife/redirection_spec.rb +57 -0
  370. data/spec/integration/knife/show_spec.rb +158 -0
  371. data/spec/integration/knife/upload_spec.rb +1060 -0
  372. data/spec/integration/solo/solo_spec.rb +41 -0
  373. data/spec/spec_helper.rb +55 -1
  374. data/spec/support/chef_helpers.rb +32 -0
  375. data/spec/support/platform_helpers.rb +40 -0
  376. data/spec/support/platforms/win32/spec_service.rb +59 -0
  377. data/spec/support/shared/functional/directory_resource.rb +43 -16
  378. data/spec/support/shared/functional/file_resource.rb +661 -20
  379. data/spec/support/shared/functional/securable_resource.rb +109 -8
  380. data/spec/support/shared/functional/securable_resource_with_reporting.rb +39 -31
  381. data/spec/support/shared/integration/integration_helper.rb +166 -0
  382. data/spec/support/shared/integration/knife_support.rb +171 -0
  383. data/spec/support/shared/unit/execute_resource.rb +125 -0
  384. data/spec/support/shared/unit/file_system_support.rb +8 -48
  385. data/spec/support/shared/unit/provider/file.rb +609 -0
  386. data/spec/support/shared/unit/provider/useradd_based_user_provider.rb +407 -0
  387. data/spec/support/shared/unit/script_resource.rb +52 -0
  388. data/spec/support/shared/unit/windows_script_resource.rb +48 -0
  389. data/spec/tiny_server.rb +13 -11
  390. data/spec/unit/application/client_spec.rb +39 -1
  391. data/spec/unit/application/knife_spec.rb +12 -0
  392. data/spec/unit/application/solo_spec.rb +1 -1
  393. data/spec/unit/application_spec.rb +57 -2
  394. data/spec/unit/chef_fs/diff_spec.rb +30 -31
  395. data/spec/unit/chef_fs/file_pattern_spec.rb +2 -2
  396. data/spec/unit/chef_fs/file_system_spec.rb +2 -3
  397. data/spec/unit/client_spec.rb +20 -1
  398. data/spec/unit/config_spec.rb +70 -52
  399. data/spec/unit/cookbook/synchronizer_spec.rb +49 -1
  400. data/spec/unit/cookbook/syntax_check_spec.rb +28 -3
  401. data/spec/unit/cookbook_loader_spec.rb +3 -2
  402. data/spec/unit/daemon_spec.rb +7 -7
  403. data/spec/unit/data_bag_spec.rb +7 -0
  404. data/spec/unit/deprecation_spec.rb +86 -0
  405. data/spec/unit/encrypted_data_bag_item_spec.rb +183 -88
  406. data/spec/unit/environment_spec.rb +98 -0
  407. data/spec/unit/exceptions_spec.rb +6 -1
  408. data/spec/unit/file_access_control_spec.rb +21 -1
  409. data/spec/unit/file_content_management/deploy/cp_spec.rb +46 -0
  410. data/spec/unit/file_content_management/deploy/mv_unix_spec.rb +103 -0
  411. data/spec/unit/file_content_management/deploy/mv_windows_spec.rb +179 -0
  412. data/spec/unit/formatters/error_inspectors/cookbook_resolve_error_inspector_spec.rb +38 -2
  413. data/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb +3 -2
  414. data/spec/unit/knife/bootstrap_spec.rb +128 -29
  415. data/spec/unit/knife/configure_spec.rb +42 -26
  416. data/spec/unit/knife/cookbook_download_spec.rb +24 -3
  417. data/spec/unit/knife/cookbook_upload_spec.rb +8 -4
  418. data/spec/unit/knife/core/bootstrap_context_spec.rb +78 -61
  419. data/spec/unit/knife/core/subcommand_loader_spec.rb +20 -0
  420. data/spec/unit/knife/core/ui_spec.rb +41 -0
  421. data/spec/unit/knife/node_run_list_set_spec.rb +140 -0
  422. data/spec/unit/knife_spec.rb +21 -0
  423. data/spec/unit/mixin/enforce_ownership_and_permissions_spec.rb +1 -0
  424. data/spec/unit/mixin/params_validate_spec.rb +35 -0
  425. data/spec/unit/mixin/template_spec.rb +69 -57
  426. data/spec/unit/mixin/windows_architecture_helper_spec.rb +83 -0
  427. data/spec/unit/node_spec.rb +7 -0
  428. data/spec/unit/platform_spec.rb +15 -1
  429. data/spec/unit/provider/cookbook_file/content_spec.rb +40 -0
  430. data/spec/unit/provider/cookbook_file_spec.rb +26 -183
  431. data/spec/unit/provider/cron/solaris_spec.rb +1 -1
  432. data/spec/unit/provider/deploy/revision_spec.rb +19 -11
  433. data/spec/unit/provider/deploy_spec.rb +2 -2
  434. data/spec/unit/provider/directory_spec.rb +23 -23
  435. data/spec/unit/provider/execute_spec.rb +27 -1
  436. data/spec/unit/provider/file/content_spec.rb +101 -0
  437. data/spec/unit/provider/file_spec.rb +25 -484
  438. data/spec/unit/provider/git_spec.rb +224 -28
  439. data/spec/unit/provider/group/usermod_spec.rb +3 -1
  440. data/spec/unit/provider/ifconfig/debian_spec.rb +89 -0
  441. data/spec/unit/provider/ifconfig/redhat_spec.rb +71 -0
  442. data/spec/unit/provider/ifconfig_spec.rb +0 -33
  443. data/spec/unit/provider/mount/mount_spec.rb +33 -2
  444. data/spec/unit/provider/mount/windows_spec.rb +4 -1
  445. data/spec/unit/provider/mount_spec.rb +16 -6
  446. data/spec/unit/provider/package/portage_spec.rb +44 -0
  447. data/spec/unit/provider/package/rubygems_spec.rb +44 -1
  448. data/spec/unit/provider/package/smartos_spec.rb +3 -2
  449. data/spec/unit/provider/package/yum_spec.rb +36 -39
  450. data/spec/unit/provider/package/zypper_spec.rb +84 -22
  451. data/spec/unit/provider/package_spec.rb +0 -4
  452. data/spec/unit/provider/powershell_spec.rb +38 -0
  453. data/spec/unit/provider/remote_directory_spec.rb +0 -4
  454. data/spec/unit/provider/remote_file/cache_control_data_spec.rb +211 -0
  455. data/spec/unit/provider/remote_file/content_spec.rb +230 -0
  456. data/spec/unit/provider/remote_file/fetcher_spec.rb +75 -0
  457. data/spec/unit/provider/remote_file/ftp_spec.rb +224 -0
  458. data/spec/unit/provider/remote_file/http_spec.rb +319 -0
  459. data/spec/unit/provider/remote_file/local_file_spec.rb +60 -0
  460. data/spec/unit/provider/remote_file_spec.rb +33 -295
  461. data/spec/unit/provider/route_spec.rb +25 -9
  462. data/spec/unit/provider/service/macosx_spec.rb +176 -152
  463. data/spec/unit/provider/service/solaris_smf_service_spec.rb +21 -18
  464. data/spec/unit/provider/service/systemd_service_spec.rb +2 -2
  465. data/spec/unit/provider/service/upstart_service_spec.rb +2 -2
  466. data/spec/unit/provider/service_spec.rb +3 -3
  467. data/spec/unit/provider/template/content_spec.rb +78 -0
  468. data/spec/unit/provider/template_spec.rb +52 -184
  469. data/spec/unit/provider/user/solaris_spec.rb +80 -0
  470. data/spec/unit/provider/user/useradd_spec.rb +12 -358
  471. data/spec/unit/resource/batch_spec.rb +48 -0
  472. data/spec/unit/resource/conditional_action_not_nothing_spec.rb +45 -0
  473. data/spec/unit/resource/execute_spec.rb +3 -101
  474. data/spec/unit/resource/file_spec.rb +0 -5
  475. data/spec/unit/resource/group_spec.rb +9 -0
  476. data/spec/unit/resource/ifconfig_spec.rb +60 -1
  477. data/spec/unit/resource/link_spec.rb +1 -0
  478. data/spec/unit/resource/mount_spec.rb +37 -0
  479. data/spec/unit/resource/powershell_spec.rb +48 -0
  480. data/spec/unit/resource/remote_file_spec.rb +44 -4
  481. data/spec/unit/resource/route_spec.rb +1 -1
  482. data/spec/unit/resource/script_spec.rb +13 -36
  483. data/spec/unit/resource/template_spec.rb +111 -8
  484. data/spec/unit/resource/user_spec.rb +7 -0
  485. data/spec/unit/resource_collection_spec.rb +61 -32
  486. data/spec/unit/resource_reporter_spec.rb +115 -102
  487. data/spec/unit/resource_spec.rb +170 -1
  488. data/spec/unit/rest/auth_credentials_spec.rb +2 -2
  489. data/spec/unit/rest_spec.rb +6 -2
  490. data/spec/unit/run_context/cookbook_compiler_spec.rb +9 -0
  491. data/spec/unit/runner_spec.rb +1 -1
  492. data/spec/unit/scan_access_control_spec.rb +4 -2
  493. data/spec/unit/shell/shell_session_spec.rb +15 -2
  494. data/spec/unit/util/backup_spec.rb +149 -0
  495. data/spec/unit/util/diff_spec.rb +596 -0
  496. data/spec/unit/util/selinux_spec.rb +172 -0
  497. data/spec/unit/version/platform_spec.rb +61 -0
  498. data/spec/unit/version_constraint/platform_spec.rb +46 -0
  499. data/spec/unit/version_constraint_spec.rb +5 -0
  500. metadata +233 -10
  501. data/lib/chef/chef_fs/file_system/data_bag_item.rb +0 -59
  502. data/spec/unit/chef_fs/file_system/chef_server_root_dir_spec.rb +0 -237
  503. data/spec/unit/chef_fs/file_system/cookbooks_dir_spec.rb +0 -568
  504. data/spec/unit/chef_fs/file_system/data_bags_dir_spec.rb +0 -220
@@ -0,0 +1,172 @@
1
+ #
2
+ # Author:: Serdar Sutay (<serdar@opscode.com>)
3
+ # Copyright:: Copyright (c) 2013 Opscode, Inc.
4
+ # License:: Apache License, Version 2.0
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+
20
+ require 'spec_helper'
21
+
22
+ describe Chef::Util::Selinux do
23
+ class TestClass
24
+ include Chef::Util::Selinux
25
+
26
+ def self.reset_state
27
+ @@selinux_enabled = nil
28
+ @@restorecon_path = nil
29
+ @@selinuxenabled_path = nil
30
+ end
31
+ end
32
+
33
+ before do
34
+ TestClass.reset_state
35
+ @test_instance = TestClass.new
36
+ end
37
+
38
+ after(:each) do
39
+ TestClass.reset_state
40
+ end
41
+
42
+ it "each part of ENV['PATH'] should be checked" do
43
+ expected_paths = ENV['PATH'].split(File::PATH_SEPARATOR) + [ '/bin', '/usr/bin', '/sbin', '/usr/sbin' ]
44
+
45
+ expected_paths.each do |bin_path|
46
+ selinux_path = File.join(bin_path, "selinuxenabled")
47
+ File.should_receive(:executable?).with(selinux_path).and_return(false)
48
+ end
49
+
50
+ @test_instance.selinux_enabled?.should be_false
51
+ end
52
+
53
+ describe "when selinuxenabled binary exists" do
54
+ before do
55
+ @selinux_enabled_path = File.join("/sbin", "selinuxenabled")
56
+ File.stub!(:executable?) do |file_path|
57
+ file_path.end_with?("selinuxenabled").should be_true
58
+ file_path == @selinux_enabled_path
59
+ end
60
+ end
61
+
62
+ describe "when selinux is enabled" do
63
+ before do
64
+ cmd_result = mock("Cmd Result", :exitstatus => 0)
65
+ @test_instance.should_receive(:shell_out!).once.with(@selinux_enabled_path, {:returns=>[0, 1]}).and_return(cmd_result)
66
+ end
67
+
68
+ it "should report selinux is enabled" do
69
+ @test_instance.selinux_enabled?.should be_true
70
+ # should check the file system only once for multiple calls
71
+ @test_instance.selinux_enabled?.should be_true
72
+ end
73
+ end
74
+
75
+ describe "when selinux is disabled" do
76
+ before do
77
+ cmd_result = mock("Cmd Result", :exitstatus => 1)
78
+ @test_instance.should_receive(:shell_out!).once.with(@selinux_enabled_path, {:returns=>[0, 1]}).and_return(cmd_result)
79
+ end
80
+
81
+ it "should report selinux is disabled" do
82
+ @test_instance.selinux_enabled?.should be_false
83
+ # should check the file system only once for multiple calls
84
+ @test_instance.selinux_enabled?.should be_false
85
+ end
86
+ end
87
+
88
+ describe "when selinux gives an unexpected status" do
89
+ before do
90
+ cmd_result = mock("Cmd Result", :exitstatus => 101)
91
+ @test_instance.should_receive(:shell_out!).once.with(@selinux_enabled_path, {:returns=>[0, 1]}).and_return(cmd_result)
92
+ end
93
+
94
+ it "should throw an error" do
95
+ lambda {@test_instance.selinux_enabled?}.should raise_error(RuntimeError)
96
+ end
97
+ end
98
+ end
99
+
100
+ describe "when selinuxenabled binary doesn't exist" do
101
+ before do
102
+ File.stub!(:executable?) do |file_path|
103
+ file_path.end_with?("selinuxenabled").should be_true
104
+ false
105
+ end
106
+ end
107
+
108
+ it "should report selinux is disabled" do
109
+ @test_instance.selinux_enabled?.should be_false
110
+ # should check the file system only once for multiple calls
111
+ File.should_not_receive(:executable?)
112
+ @test_instance.selinux_enabled?.should be_false
113
+ end
114
+ end
115
+
116
+ describe "when restorecon binary exists on the system" do
117
+ let (:path) { "/path/to/awesome" }
118
+
119
+ before do
120
+ @restorecon_enabled_path = File.join("/sbin", "restorecon")
121
+ File.stub!(:executable?) do |file_path|
122
+ file_path.end_with?("restorecon").should be_true
123
+ file_path == @restorecon_enabled_path
124
+ end
125
+ end
126
+
127
+ it "should call restorecon non-recursive by default" do
128
+ restorecon_command = "#{@restorecon_enabled_path} -R #{path}"
129
+ @test_instance.should_receive(:shell_out!).twice.with(restorecon_command)
130
+ @test_instance.restore_security_context(path)
131
+ File.should_not_receive(:executable?)
132
+ @test_instance.restore_security_context(path)
133
+ end
134
+
135
+ it "should call restorecon recursive when recursive is set" do
136
+ restorecon_command = "#{@restorecon_enabled_path} -R -r #{path}"
137
+ @test_instance.should_receive(:shell_out!).twice.with(restorecon_command)
138
+ @test_instance.restore_security_context(path, true)
139
+ File.should_not_receive(:executable?)
140
+ @test_instance.restore_security_context(path, true)
141
+ end
142
+
143
+ it "should call restorecon non-recursive when recursive is not set" do
144
+ restorecon_command = "#{@restorecon_enabled_path} -R #{path}"
145
+ @test_instance.should_receive(:shell_out!).twice.with(restorecon_command)
146
+ @test_instance.restore_security_context(path)
147
+ File.should_not_receive(:executable?)
148
+ @test_instance.restore_security_context(path)
149
+ end
150
+
151
+ describe "when restorecon doesn't exist on the system" do
152
+ before do
153
+ File.stub!(:executable?) do |file_path|
154
+ file_path.end_with?("restorecon").should be_true
155
+ false
156
+ end
157
+ end
158
+
159
+ it "should log a warning message" do
160
+ log = [ ]
161
+ Chef::Log.stub(:warn) do |message|
162
+ log << message
163
+ end
164
+
165
+ @test_instance.restore_security_context(path)
166
+ log.should_not be_empty
167
+ File.should_not_receive(:executable?)
168
+ @test_instance.restore_security_context(path)
169
+ end
170
+ end
171
+ end
172
+ end
@@ -0,0 +1,61 @@
1
+ # Author:: Xabier de Zuazo (<xabier@onddo.com>)
2
+ # Copyright:: Copyright (c) 2013 Onddo Labs, SL.
3
+ # License:: Apache License, Version 2.0
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'spec_helper'
18
+ require 'chef/version/platform'
19
+
20
+ describe Chef::Version::Platform do
21
+
22
+ it "is a subclass of Chef::Version" do
23
+ v = Chef::Version::Platform.new('1.1')
24
+ v.should be_an_instance_of(Chef::Version::Platform)
25
+ v.should be_a_kind_of(Chef::Version)
26
+ end
27
+
28
+ it "should transform 1 to 1.0.0" do
29
+ Chef::Version::Platform.new("1").to_s.should == "1.0.0"
30
+ end
31
+
32
+ describe "when creating valid Versions" do
33
+ good_versions = %w(1 1.2 1.2.3 1000.80.50000 0.300.25 001.02.00003)
34
+ good_versions.each do |v|
35
+ it "should accept '#{v}'" do
36
+ Chef::Version::Platform.new v
37
+ end
38
+ end
39
+ end
40
+
41
+ describe "when given bogus input" do
42
+ bad_versions = ["1.2.3.4", "1.2.a4", "a", "1.2 3", "1.2 a",
43
+ "1 2 3", "1-2-3", "1_2_3", "1.2_3", "1.2-3"]
44
+ the_error = Chef::Exceptions::InvalidPlatformVersion
45
+ bad_versions.each do |v|
46
+ it "should raise #{the_error} when given '#{v}'" do
47
+ lambda { Chef::Version::Platform.new v }.should raise_error(the_error)
48
+ end
49
+ end
50
+ end
51
+
52
+ describe "<=>" do
53
+
54
+ it "should equate versions 1 and 1.0.0" do
55
+ Chef::Version::Platform.new("1").should == Chef::Version::Platform.new("1.0.0")
56
+ end
57
+
58
+ end
59
+
60
+ end
61
+
@@ -0,0 +1,46 @@
1
+ # Author:: Xabier de Zuazo (<xabier@onddo.com>)
2
+ # Copyright:: Copyright (c) 2013 Onddo Labs, SL.
3
+ # License:: Apache License, Version 2.0
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'spec_helper'
18
+ require 'chef/version_constraint/platform'
19
+
20
+ describe Chef::VersionConstraint::Platform do
21
+
22
+ it "is a subclass of Chef::VersionConstraint" do
23
+ v = Chef::VersionConstraint::Platform.new
24
+ v.should be_an_instance_of(Chef::VersionConstraint::Platform)
25
+ v.should be_a_kind_of(Chef::VersionConstraint)
26
+ end
27
+
28
+ it "should work with Chef::Version::Platform classes" do
29
+ vc = Chef::VersionConstraint::Platform.new("1.0")
30
+ vc.version.should be_an_instance_of(Chef::Version::Platform)
31
+ end
32
+
33
+ describe "include?" do
34
+
35
+ it "pessimistic ~> x" do
36
+ vc = Chef::VersionConstraint::Platform.new "~> 1"
37
+ vc.should include "1.3.3"
38
+ vc.should include "1.4"
39
+
40
+ vc.should_not include "2.2"
41
+ vc.should_not include "0.3.0"
42
+ end
43
+
44
+ end
45
+ end
46
+
@@ -59,6 +59,11 @@ describe Chef::VersionConstraint do
59
59
  Chef::VersionConstraint.new(nil).to_s.should == ">= 0.0.0"
60
60
  end
61
61
 
62
+ it "should work with Chef::Version classes" do
63
+ vc = Chef::VersionConstraint.new("1.0")
64
+ vc.version.should be_an_instance_of(Chef::Version)
65
+ end
66
+
62
67
  describe "include?" do
63
68
  describe "handles various input data types" do
64
69
  before do
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.4.4
5
- prerelease:
4
+ version: 11.6.0.hotfix.1
5
+ prerelease: 7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Adam Jacob
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-24 00:00:00.000000000 Z
12
+ date: 2013-08-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mixlib-config
@@ -359,6 +359,38 @@ dependencies:
359
359
  - - ~>
360
360
  - !ruby/object:Gem::Version
361
361
  version: 2.12.0
362
+ - !ruby/object:Gem::Dependency
363
+ name: chef-zero
364
+ requirement: !ruby/object:Gem::Requirement
365
+ none: false
366
+ requirements:
367
+ - - ~>
368
+ - !ruby/object:Gem::Version
369
+ version: '1.4'
370
+ type: :development
371
+ prerelease: false
372
+ version_requirements: !ruby/object:Gem::Requirement
373
+ none: false
374
+ requirements:
375
+ - - ~>
376
+ - !ruby/object:Gem::Version
377
+ version: '1.4'
378
+ - !ruby/object:Gem::Dependency
379
+ name: puma
380
+ requirement: !ruby/object:Gem::Requirement
381
+ none: false
382
+ requirements:
383
+ - - ~>
384
+ - !ruby/object:Gem::Version
385
+ version: '1.6'
386
+ type: :development
387
+ prerelease: false
388
+ version_requirements: !ruby/object:Gem::Requirement
389
+ none: false
390
+ requirements:
391
+ - - ~>
392
+ - !ruby/object:Gem::Version
393
+ version: '1.6'
362
394
  description: A systems integration framework, built to bring the benefits of configuration
363
395
  management to your entire infrastructure.
364
396
  email: adam@opscode.com
@@ -369,6 +401,7 @@ executables:
369
401
  - chef-shell
370
402
  - shef
371
403
  - chef-apply
404
+ - chef-service-manager
372
405
  extensions: []
373
406
  extra_rdoc_files:
374
407
  - README.md
@@ -502,36 +535,69 @@ files:
502
535
  - lib/chef/application/knife.rb
503
536
  - lib/chef/application/solo.rb
504
537
  - lib/chef/application/windows_service.rb
538
+ - lib/chef/application/windows_service_manager.rb
505
539
  - lib/chef/application.rb
506
540
  - lib/chef/applications.rb
507
541
  - lib/chef/checksum/storage/filesystem.rb
508
542
  - lib/chef/checksum/storage.rb
543
+ - lib/chef/chef_fs/chef_fs_data_store.rb
509
544
  - lib/chef/chef_fs/command_line.rb
545
+ - lib/chef/chef_fs/config.rb
546
+ - lib/chef/chef_fs/data_handler/acl_data_handler.rb
547
+ - lib/chef/chef_fs/data_handler/client_data_handler.rb
548
+ - lib/chef/chef_fs/data_handler/container_data_handler.rb
549
+ - lib/chef/chef_fs/data_handler/cookbook_data_handler.rb
550
+ - lib/chef/chef_fs/data_handler/data_bag_item_data_handler.rb
551
+ - lib/chef/chef_fs/data_handler/data_handler_base.rb
552
+ - lib/chef/chef_fs/data_handler/environment_data_handler.rb
553
+ - lib/chef/chef_fs/data_handler/group_data_handler.rb
554
+ - lib/chef/chef_fs/data_handler/node_data_handler.rb
555
+ - lib/chef/chef_fs/data_handler/role_data_handler.rb
556
+ - lib/chef/chef_fs/data_handler/user_data_handler.rb
510
557
  - lib/chef/chef_fs/file_pattern.rb
558
+ - lib/chef/chef_fs/file_system/acl_dir.rb
559
+ - lib/chef/chef_fs/file_system/acl_entry.rb
560
+ - lib/chef/chef_fs/file_system/acls_dir.rb
561
+ - lib/chef/chef_fs/file_system/already_exists_error.rb
511
562
  - lib/chef/chef_fs/file_system/base_fs_dir.rb
512
563
  - lib/chef/chef_fs/file_system/base_fs_object.rb
564
+ - lib/chef/chef_fs/file_system/chef_repository_file_system_cookbook_dir.rb
565
+ - lib/chef/chef_fs/file_system/chef_repository_file_system_cookbook_entry.rb
566
+ - lib/chef/chef_fs/file_system/chef_repository_file_system_cookbooks_dir.rb
567
+ - lib/chef/chef_fs/file_system/chef_repository_file_system_data_bags_dir.rb
513
568
  - lib/chef/chef_fs/file_system/chef_repository_file_system_entry.rb
514
569
  - lib/chef/chef_fs/file_system/chef_repository_file_system_root_dir.rb
515
570
  - lib/chef/chef_fs/file_system/chef_server_root_dir.rb
516
571
  - lib/chef/chef_fs/file_system/cookbook_dir.rb
517
572
  - lib/chef/chef_fs/file_system/cookbook_file.rb
573
+ - lib/chef/chef_fs/file_system/cookbook_frozen_error.rb
518
574
  - lib/chef/chef_fs/file_system/cookbook_subdir.rb
575
+ - lib/chef/chef_fs/file_system/cookbooks_acl_dir.rb
519
576
  - lib/chef/chef_fs/file_system/cookbooks_dir.rb
520
577
  - lib/chef/chef_fs/file_system/data_bag_dir.rb
521
- - lib/chef/chef_fs/file_system/data_bag_item.rb
522
578
  - lib/chef/chef_fs/file_system/data_bags_dir.rb
579
+ - lib/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb
580
+ - lib/chef/chef_fs/file_system/environments_dir.rb
523
581
  - lib/chef/chef_fs/file_system/file_system_entry.rb
524
582
  - lib/chef/chef_fs/file_system/file_system_error.rb
525
583
  - lib/chef/chef_fs/file_system/file_system_root_dir.rb
584
+ - lib/chef/chef_fs/file_system/memory_dir.rb
585
+ - lib/chef/chef_fs/file_system/memory_file.rb
586
+ - lib/chef/chef_fs/file_system/memory_root.rb
587
+ - lib/chef/chef_fs/file_system/multiplexed_dir.rb
526
588
  - lib/chef/chef_fs/file_system/must_delete_recursively_error.rb
527
589
  - lib/chef/chef_fs/file_system/nodes_dir.rb
528
590
  - lib/chef/chef_fs/file_system/nonexistent_fs_object.rb
529
591
  - lib/chef/chef_fs/file_system/not_found_error.rb
592
+ - lib/chef/chef_fs/file_system/operation_failed_error.rb
593
+ - lib/chef/chef_fs/file_system/operation_not_allowed_error.rb
530
594
  - lib/chef/chef_fs/file_system/rest_list_dir.rb
531
595
  - lib/chef/chef_fs/file_system/rest_list_entry.rb
532
596
  - lib/chef/chef_fs/file_system.rb
533
597
  - lib/chef/chef_fs/knife.rb
598
+ - lib/chef/chef_fs/parallelizer.rb
534
599
  - lib/chef/chef_fs/path_utils.rb
600
+ - lib/chef/chef_fs/raw_request.rb
535
601
  - lib/chef/chef_fs.rb
536
602
  - lib/chef/client.rb
537
603
  - lib/chef/config.rb
@@ -551,6 +617,12 @@ files:
551
617
  - lib/chef/daemon.rb
552
618
  - lib/chef/data_bag.rb
553
619
  - lib/chef/data_bag_item.rb
620
+ - lib/chef/deprecation/mixin/template.rb
621
+ - lib/chef/deprecation/provider/cookbook_file.rb
622
+ - lib/chef/deprecation/provider/file.rb
623
+ - lib/chef/deprecation/provider/remote_file.rb
624
+ - lib/chef/deprecation/provider/template.rb
625
+ - lib/chef/deprecation/warnings.rb
554
626
  - lib/chef/digester.rb
555
627
  - lib/chef/dsl/data_query.rb
556
628
  - lib/chef/dsl/include_attribute.rb
@@ -568,6 +640,12 @@ files:
568
640
  - lib/chef/file_access_control/windows.rb
569
641
  - lib/chef/file_access_control.rb
570
642
  - lib/chef/file_cache.rb
643
+ - lib/chef/file_content_management/content_base.rb
644
+ - lib/chef/file_content_management/deploy/cp.rb
645
+ - lib/chef/file_content_management/deploy/mv_unix.rb
646
+ - lib/chef/file_content_management/deploy/mv_windows.rb
647
+ - lib/chef/file_content_management/deploy.rb
648
+ - lib/chef/file_content_management/tempfile.rb
571
649
  - lib/chef/formatters/base.rb
572
650
  - lib/chef/formatters/doc.rb
573
651
  - lib/chef/formatters/error_descriptor.rb
@@ -637,8 +715,10 @@ files:
637
715
  - lib/chef/knife/data_bag_list.rb
638
716
  - lib/chef/knife/data_bag_show.rb
639
717
  - lib/chef/knife/delete.rb
718
+ - lib/chef/knife/deps.rb
640
719
  - lib/chef/knife/diff.rb
641
720
  - lib/chef/knife/download.rb
721
+ - lib/chef/knife/edit.rb
642
722
  - lib/chef/knife/environment_create.rb
643
723
  - lib/chef/knife/environment_delete.rb
644
724
  - lib/chef/knife/environment_edit.rb
@@ -658,6 +738,7 @@ files:
658
738
  - lib/chef/knife/node_list.rb
659
739
  - lib/chef/knife/node_run_list_add.rb
660
740
  - lib/chef/knife/node_run_list_remove.rb
741
+ - lib/chef/knife/node_run_list_set.rb
661
742
  - lib/chef/knife/node_show.rb
662
743
  - lib/chef/knife/raw.rb
663
744
  - lib/chef/knife/recipe_list.rb
@@ -682,6 +763,7 @@ files:
682
763
  - lib/chef/knife/user_list.rb
683
764
  - lib/chef/knife/user_reregister.rb
684
765
  - lib/chef/knife/user_show.rb
766
+ - lib/chef/knife/xargs.rb
685
767
  - lib/chef/knife.rb
686
768
  - lib/chef/log.rb
687
769
  - lib/chef/mash.rb
@@ -707,23 +789,31 @@ files:
707
789
  - lib/chef/mixin/shell_out.rb
708
790
  - lib/chef/mixin/template.rb
709
791
  - lib/chef/mixin/why_run.rb
792
+ - lib/chef/mixin/windows_architecture_helper.rb
710
793
  - lib/chef/mixin/xml_escape.rb
711
794
  - lib/chef/mixins.rb
712
- - lib/chef/monkey_patches/dir.rb
795
+ - lib/chef/monkey_patches/file.rb
713
796
  - lib/chef/monkey_patches/fileutils.rb
797
+ - lib/chef/monkey_patches/net-ssh-multi.rb
714
798
  - lib/chef/monkey_patches/net_http.rb
715
799
  - lib/chef/monkey_patches/numeric.rb
716
800
  - lib/chef/monkey_patches/object.rb
717
801
  - lib/chef/monkey_patches/regexp.rb
802
+ - lib/chef/monkey_patches/securerandom.rb
718
803
  - lib/chef/monkey_patches/string.rb
719
804
  - lib/chef/monkey_patches/tempfile.rb
805
+ - lib/chef/monologger.rb
720
806
  - lib/chef/nil_argument.rb
721
807
  - lib/chef/node/attribute.rb
722
808
  - lib/chef/node/attribute_collections.rb
723
809
  - lib/chef/node/immutable_collections.rb
724
810
  - lib/chef/node.rb
811
+ - lib/chef/platform/provider_mapping.rb
812
+ - lib/chef/platform/query_helpers.rb
725
813
  - lib/chef/platform.rb
814
+ - lib/chef/provider/batch.rb
726
815
  - lib/chef/provider/breakpoint.rb
816
+ - lib/chef/provider/cookbook_file/content.rb
727
817
  - lib/chef/provider/cookbook_file.rb
728
818
  - lib/chef/provider/cron/solaris.rb
729
819
  - lib/chef/provider/cron.rb
@@ -735,6 +825,7 @@ files:
735
825
  - lib/chef/provider/env.rb
736
826
  - lib/chef/provider/erl_call.rb
737
827
  - lib/chef/provider/execute.rb
828
+ - lib/chef/provider/file/content.rb
738
829
  - lib/chef/provider/file.rb
739
830
  - lib/chef/provider/git.rb
740
831
  - lib/chef/provider/group/aix.rb
@@ -748,6 +839,8 @@ files:
748
839
  - lib/chef/provider/group/windows.rb
749
840
  - lib/chef/provider/group.rb
750
841
  - lib/chef/provider/http_request.rb
842
+ - lib/chef/provider/ifconfig/debian.rb
843
+ - lib/chef/provider/ifconfig/redhat.rb
751
844
  - lib/chef/provider/ifconfig.rb
752
845
  - lib/chef/provider/link.rb
753
846
  - lib/chef/provider/log.rb
@@ -773,8 +866,15 @@ files:
773
866
  - lib/chef/provider/package/yum.rb
774
867
  - lib/chef/provider/package/zypper.rb
775
868
  - lib/chef/provider/package.rb
869
+ - lib/chef/provider/powershell_script.rb
776
870
  - lib/chef/provider/registry_key.rb
777
871
  - lib/chef/provider/remote_directory.rb
872
+ - lib/chef/provider/remote_file/cache_control_data.rb
873
+ - lib/chef/provider/remote_file/content.rb
874
+ - lib/chef/provider/remote_file/fetcher.rb
875
+ - lib/chef/provider/remote_file/ftp.rb
876
+ - lib/chef/provider/remote_file/http.rb
877
+ - lib/chef/provider/remote_file/local_file.rb
778
878
  - lib/chef/provider/remote_file.rb
779
879
  - lib/chef/provider/resource_update.rb
780
880
  - lib/chef/provider/route.rb
@@ -796,22 +896,27 @@ files:
796
896
  - lib/chef/provider/service/windows.rb
797
897
  - lib/chef/provider/service.rb
798
898
  - lib/chef/provider/subversion.rb
899
+ - lib/chef/provider/template/content.rb
799
900
  - lib/chef/provider/template.rb
800
901
  - lib/chef/provider/template_finder.rb
801
902
  - lib/chef/provider/user/dscl.rb
802
903
  - lib/chef/provider/user/pw.rb
904
+ - lib/chef/provider/user/solaris.rb
803
905
  - lib/chef/provider/user/useradd.rb
804
906
  - lib/chef/provider/user/windows.rb
805
907
  - lib/chef/provider/user.rb
908
+ - lib/chef/provider/windows_script.rb
806
909
  - lib/chef/provider.rb
807
910
  - lib/chef/providers.rb
808
911
  - lib/chef/recipe.rb
809
912
  - lib/chef/reserved_names.rb
810
913
  - lib/chef/resource/apt_package.rb
811
914
  - lib/chef/resource/bash.rb
915
+ - lib/chef/resource/batch.rb
812
916
  - lib/chef/resource/breakpoint.rb
813
917
  - lib/chef/resource/chef_gem.rb
814
918
  - lib/chef/resource/conditional.rb
919
+ - lib/chef/resource/conditional_action_not_nothing.rb
815
920
  - lib/chef/resource/cookbook_file.rb
816
921
  - lib/chef/resource/cron.rb
817
922
  - lib/chef/resource/csh.rb
@@ -842,6 +947,7 @@ files:
842
947
  - lib/chef/resource/pacman_package.rb
843
948
  - lib/chef/resource/perl.rb
844
949
  - lib/chef/resource/portage_package.rb
950
+ - lib/chef/resource/powershell_script.rb
845
951
  - lib/chef/resource/python.rb
846
952
  - lib/chef/resource/registry_key.rb
847
953
  - lib/chef/resource/remote_directory.rb
@@ -859,6 +965,7 @@ files:
859
965
  - lib/chef/resource/template.rb
860
966
  - lib/chef/resource/timestamped_deploy.rb
861
967
  - lib/chef/resource/user.rb
968
+ - lib/chef/resource/windows_script.rb
862
969
  - lib/chef/resource/yum_package.rb
863
970
  - lib/chef/resource.rb
864
971
  - lib/chef/resource_collection/stepable_iterator.rb
@@ -895,14 +1002,19 @@ files:
895
1002
  - lib/chef/streaming_cookbook_uploader.rb
896
1003
  - lib/chef/tasks/chef_repo.rake
897
1004
  - lib/chef/user.rb
1005
+ - lib/chef/util/backup.rb
1006
+ - lib/chef/util/diff.rb
898
1007
  - lib/chef/util/file_edit.rb
1008
+ - lib/chef/util/selinux.rb
899
1009
  - lib/chef/util/windows/net_group.rb
900
1010
  - lib/chef/util/windows/net_use.rb
901
1011
  - lib/chef/util/windows/net_user.rb
902
1012
  - lib/chef/util/windows/volume.rb
903
1013
  - lib/chef/util/windows.rb
1014
+ - lib/chef/version/platform.rb
904
1015
  - lib/chef/version.rb
905
1016
  - lib/chef/version_class.rb
1017
+ - lib/chef/version_constraint/platform.rb
906
1018
  - lib/chef/version_constraint.rb
907
1019
  - lib/chef/win32/api/error.rb
908
1020
  - lib/chef/win32/api/file.rb
@@ -931,9 +1043,47 @@ files:
931
1043
  - lib/chef/win32/version.rb
932
1044
  - lib/chef.rb
933
1045
  - tasks/rspec.rb
1046
+ - spec/data/apt/chef-integration-test-1.0/debian/changelog
1047
+ - spec/data/apt/chef-integration-test-1.0/debian/compat
1048
+ - spec/data/apt/chef-integration-test-1.0/debian/control
1049
+ - spec/data/apt/chef-integration-test-1.0/debian/copyright
1050
+ - spec/data/apt/chef-integration-test-1.0/debian/files
1051
+ - spec/data/apt/chef-integration-test-1.0/debian/rules
1052
+ - spec/data/apt/chef-integration-test-1.0/debian/source/format
1053
+ - spec/data/apt/chef-integration-test-1.1/debian/changelog
1054
+ - spec/data/apt/chef-integration-test-1.1/debian/compat
1055
+ - spec/data/apt/chef-integration-test-1.1/debian/control
1056
+ - spec/data/apt/chef-integration-test-1.1/debian/copyright
1057
+ - spec/data/apt/chef-integration-test-1.1/debian/files
1058
+ - spec/data/apt/chef-integration-test-1.1/debian/rules
1059
+ - spec/data/apt/chef-integration-test-1.1/debian/source/format
1060
+ - spec/data/apt/chef-integration-test_1.0-1_amd64.changes
1061
+ - spec/data/apt/chef-integration-test_1.0-1_amd64.deb
1062
+ - spec/data/apt/chef-integration-test_1.0.orig.tar.gz
1063
+ - spec/data/apt/chef-integration-test_1.1-1_amd64.changes
1064
+ - spec/data/apt/chef-integration-test_1.1-1_amd64.deb
1065
+ - spec/data/apt/chef-integration-test_1.1.orig.tar.gz
1066
+ - spec/data/apt/var/www/apt/conf/distributions
1067
+ - spec/data/apt/var/www/apt/conf/incoming
1068
+ - spec/data/apt/var/www/apt/conf/pulls
1069
+ - spec/data/apt/var/www/apt/db/checksums.db
1070
+ - spec/data/apt/var/www/apt/db/contents.cache.db
1071
+ - spec/data/apt/var/www/apt/db/packages.db
1072
+ - spec/data/apt/var/www/apt/db/references.db
1073
+ - spec/data/apt/var/www/apt/db/release.caches.db
1074
+ - spec/data/apt/var/www/apt/db/version
1075
+ - spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages
1076
+ - spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages.gz
1077
+ - spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Release
1078
+ - spec/data/apt/var/www/apt/dists/sid/main/binary-i386/Packages
1079
+ - spec/data/apt/var/www/apt/dists/sid/Release
1080
+ - spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.0-1_amd64.deb
1081
+ - spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.1-1_amd64.deb
934
1082
  - spec/data/bad-config.rb
935
1083
  - spec/data/big_json.json
936
1084
  - spec/data/big_json_plus_one.json
1085
+ - spec/data/bootstrap/encrypted_data_bag_secret
1086
+ - spec/data/bootstrap/secret.erb
937
1087
  - spec/data/bootstrap/test-hints.erb
938
1088
  - spec/data/bootstrap/test.erb
939
1089
  - spec/data/cb_version_cookbooks/tatft/attributes/default.rb
@@ -970,27 +1120,42 @@ files:
970
1120
  - spec/data/cookbooks/borken/recipes/default.rb
971
1121
  - spec/data/cookbooks/borken/templates/default/borken.erb
972
1122
  - spec/data/cookbooks/chefignore
1123
+ - spec/data/cookbooks/ignorken/recipes/default.rb
1124
+ - spec/data/cookbooks/ignorken/recipes/ignoreme.rb
973
1125
  - spec/data/cookbooks/java/files/default/java.response
974
1126
  - spec/data/cookbooks/openldap/attributes/default.rb
975
1127
  - spec/data/cookbooks/openldap/attributes/smokey.rb
976
1128
  - spec/data/cookbooks/openldap/definitions/client.rb
977
1129
  - spec/data/cookbooks/openldap/definitions/server.rb
1130
+ - spec/data/cookbooks/openldap/files/default/.dotfile
1131
+ - spec/data/cookbooks/openldap/files/default/.ssh/id_rsa
1132
+ - spec/data/cookbooks/openldap/files/default/remotedir/.a_dotdir/.a_dotfile_in_a_dotdir
978
1133
  - spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file1.txt
979
1134
  - spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file2.txt
1135
+ - spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/.a_dotfile
980
1136
  - spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file1.txt
981
1137
  - spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file2.txt
982
1138
  - spec/data/cookbooks/openldap/files/default/remotedir/subdir_with_no_file_just_a_subsubdir/the_subsubdir/some_file.txt
983
1139
  - spec/data/cookbooks/openldap/recipes/default.rb
984
1140
  - spec/data/cookbooks/openldap/recipes/gigantor.rb
985
1141
  - spec/data/cookbooks/openldap/recipes/one.rb
1142
+ - spec/data/cookbooks/openldap/templates/default/all_windows_line_endings.erb
1143
+ - spec/data/cookbooks/openldap/templates/default/helper_test.erb
1144
+ - spec/data/cookbooks/openldap/templates/default/helpers_via_partial_test.erb
1145
+ - spec/data/cookbooks/openldap/templates/default/no_windows_line_endings.erb
986
1146
  - spec/data/cookbooks/openldap/templates/default/openldap_stuff.conf.erb
987
1147
  - spec/data/cookbooks/openldap/templates/default/openldap_variable_stuff.conf.erb
1148
+ - spec/data/cookbooks/openldap/templates/default/some_windows_line_endings.erb
988
1149
  - spec/data/cookbooks/openldap/templates/default/test.erb
1150
+ - spec/data/cookbooks/preseed/files/default/preseed-file.seed
1151
+ - spec/data/cookbooks/preseed/templates/default/preseed-template.seed
989
1152
  - spec/data/definitions/test.rb
990
1153
  - spec/data/environment-config.rb
1154
+ - spec/data/file-providers-method-snapshot-chef-11-4.json
991
1155
  - spec/data/fileedit/blank
992
1156
  - spec/data/fileedit/hosts
993
1157
  - spec/data/gems/chef-integration-test-0.1.0.gem
1158
+ - spec/data/git_bundles/example-repo.gitbundle
994
1159
  - spec/data/git_bundles/sinatra-test-app-with-callback-files.gitbundle
995
1160
  - spec/data/git_bundles/sinatra-test-app-with-symlinks.gitbundle
996
1161
  - spec/data/git_bundles/sinatra-test-app.gitbundle
@@ -1002,6 +1167,7 @@ files:
1002
1167
  - spec/data/kitchen/openldap/recipes/gigantor.rb
1003
1168
  - spec/data/kitchen/openldap/recipes/ignoreme.rb
1004
1169
  - spec/data/kitchen/openldap/recipes/woot.rb
1170
+ - spec/data/knife-home/.chef/plugins/knife/example_home_subcommand.rb
1005
1171
  - spec/data/knife-site-subcommands/plugins/knife/example_subcommand.rb
1006
1172
  - spec/data/knife_subcommand/test_explicit_category.rb
1007
1173
  - spec/data/knife_subcommand/test_name_mapping.rb
@@ -1023,6 +1189,7 @@ files:
1023
1189
  - spec/data/nodes/default.rb
1024
1190
  - spec/data/nodes/test.example.com.rb
1025
1191
  - spec/data/nodes/test.rb
1192
+ - spec/data/null_config.rb
1026
1193
  - spec/data/object_loader/environments/test.json
1027
1194
  - spec/data/object_loader/environments/test.rb
1028
1195
  - spec/data/object_loader/environments/test_json_class.json
@@ -1039,6 +1206,7 @@ files:
1039
1206
  - spec/data/remote_directory_data/remote_dir_file.txt
1040
1207
  - spec/data/remote_directory_data/remote_subdirectory/remote_subdir_file.txt
1041
1208
  - spec/data/remote_file/nyan_cat.png
1209
+ - spec/data/remote_file/nyan_cat.png.gz
1042
1210
  - spec/data/run_context/cookbooks/circular-dep1/attributes/default.rb
1043
1211
  - spec/data/run_context/cookbooks/circular-dep1/definitions/circular_dep1_res.rb
1044
1212
  - spec/data/run_context/cookbooks/circular-dep1/libraries/lib.rb
@@ -1108,24 +1276,46 @@ files:
1108
1276
  - spec/data/ssl/private_key_with_whitespace.pem
1109
1277
  - spec/data/templates/seattle.txt
1110
1278
  - spec/functional/dsl/registry_helper_spec.rb
1279
+ - spec/functional/file_content_management/deploy_strategies_spec.rb
1111
1280
  - spec/functional/knife/cookbook_delete_spec.rb
1112
1281
  - spec/functional/knife/exec_spec.rb
1113
1282
  - spec/functional/knife/smoke_test.rb
1114
1283
  - spec/functional/knife/ssh_spec.rb
1284
+ - spec/functional/provider/remote_file/cache_control_data_spec.rb
1285
+ - spec/functional/resource/batch_spec.rb
1115
1286
  - spec/functional/resource/cookbook_file_spec.rb
1116
1287
  - spec/functional/resource/deploy_revision_spec.rb
1117
1288
  - spec/functional/resource/directory_spec.rb
1118
1289
  - spec/functional/resource/file_spec.rb
1290
+ - spec/functional/resource/git_spec.rb
1119
1291
  - spec/functional/resource/link_spec.rb
1292
+ - spec/functional/resource/package_spec.rb
1293
+ - spec/functional/resource/powershell_spec.rb
1120
1294
  - spec/functional/resource/registry_spec.rb
1121
1295
  - spec/functional/resource/remote_directory_spec.rb
1122
1296
  - spec/functional/resource/remote_file_spec.rb
1123
1297
  - spec/functional/resource/template_spec.rb
1298
+ - spec/functional/resource/user_spec.rb
1124
1299
  - spec/functional/run_lock_spec.rb
1125
1300
  - spec/functional/shell_spec.rb
1126
1301
  - spec/functional/tiny_server_spec.rb
1127
1302
  - spec/functional/win32/registry_helper_spec.rb
1128
1303
  - spec/functional/win32/security_spec.rb
1304
+ - spec/functional/win32/service_manager_spec.rb
1305
+ - spec/functional/win32/versions_spec.rb
1306
+ - spec/integration/knife/chef_repo_path_spec.rb
1307
+ - spec/integration/knife/chef_repository_file_system_spec.rb
1308
+ - spec/integration/knife/chefignore_spec.rb
1309
+ - spec/integration/knife/delete_spec.rb
1310
+ - spec/integration/knife/deps_spec.rb
1311
+ - spec/integration/knife/diff_spec.rb
1312
+ - spec/integration/knife/download_spec.rb
1313
+ - spec/integration/knife/list_spec.rb
1314
+ - spec/integration/knife/raw_spec.rb
1315
+ - spec/integration/knife/redirection_spec.rb
1316
+ - spec/integration/knife/show_spec.rb
1317
+ - spec/integration/knife/upload_spec.rb
1318
+ - spec/integration/solo/solo_spec.rb
1129
1319
  - spec/rcov.opts
1130
1320
  - spec/spec_helper.rb
1131
1321
  - spec/stress/win32/file_spec.rb
@@ -1143,15 +1333,23 @@ files:
1143
1333
  - spec/support/platform_helpers.rb
1144
1334
  - spec/support/platforms/prof/gc.rb
1145
1335
  - spec/support/platforms/prof/win32.rb
1336
+ - spec/support/platforms/win32/spec_service.rb
1146
1337
  - spec/support/shared/functional/diff_disabled.rb
1147
1338
  - spec/support/shared/functional/directory_resource.rb
1148
1339
  - spec/support/shared/functional/file_resource.rb
1149
1340
  - spec/support/shared/functional/knife.rb
1150
1341
  - spec/support/shared/functional/securable_resource.rb
1151
1342
  - spec/support/shared/functional/securable_resource_with_reporting.rb
1343
+ - spec/support/shared/integration/integration_helper.rb
1344
+ - spec/support/shared/integration/knife_support.rb
1152
1345
  - spec/support/shared/unit/api_error_inspector.rb
1346
+ - spec/support/shared/unit/execute_resource.rb
1153
1347
  - spec/support/shared/unit/file_system_support.rb
1154
1348
  - spec/support/shared/unit/platform_introspector.rb
1349
+ - spec/support/shared/unit/provider/file.rb
1350
+ - spec/support/shared/unit/provider/useradd_based_user_provider.rb
1351
+ - spec/support/shared/unit/script_resource.rb
1352
+ - spec/support/shared/unit/windows_script_resource.rb
1155
1353
  - spec/tiny_server.rb
1156
1354
  - spec/unit/api_client/registration_spec.rb
1157
1355
  - spec/unit/api_client_spec.rb
@@ -1165,9 +1363,6 @@ files:
1165
1363
  - spec/unit/checksum/storage/filesystem_spec.rb
1166
1364
  - spec/unit/chef_fs/diff_spec.rb
1167
1365
  - spec/unit/chef_fs/file_pattern_spec.rb
1168
- - spec/unit/chef_fs/file_system/chef_server_root_dir_spec.rb
1169
- - spec/unit/chef_fs/file_system/cookbooks_dir_spec.rb
1170
- - spec/unit/chef_fs/file_system/data_bags_dir_spec.rb
1171
1366
  - spec/unit/chef_fs/file_system_spec.rb
1172
1367
  - spec/unit/chef_spec.rb
1173
1368
  - spec/unit/client_spec.rb
@@ -1183,6 +1378,7 @@ files:
1183
1378
  - spec/unit/daemon_spec.rb
1184
1379
  - spec/unit/data_bag_item_spec.rb
1185
1380
  - spec/unit/data_bag_spec.rb
1381
+ - spec/unit/deprecation_spec.rb
1186
1382
  - spec/unit/digester_spec.rb
1187
1383
  - spec/unit/dsl/data_query_spec.rb
1188
1384
  - spec/unit/dsl/platform_introspection_spec.rb
@@ -1192,6 +1388,9 @@ files:
1192
1388
  - spec/unit/exceptions_spec.rb
1193
1389
  - spec/unit/file_access_control_spec.rb
1194
1390
  - spec/unit/file_cache_spec.rb
1391
+ - spec/unit/file_content_management/deploy/cp_spec.rb
1392
+ - spec/unit/file_content_management/deploy/mv_unix_spec.rb
1393
+ - spec/unit/file_content_management/deploy/mv_windows_spec.rb
1195
1394
  - spec/unit/formatters/error_inspectors/compile_error_inspector_spec.rb
1196
1395
  - spec/unit/formatters/error_inspectors/cookbook_resolve_error_inspector_spec.rb
1197
1396
  - spec/unit/formatters/error_inspectors/cookbook_sync_error_inspector_spec.rb
@@ -1251,6 +1450,7 @@ files:
1251
1450
  - spec/unit/knife/node_list_spec.rb
1252
1451
  - spec/unit/knife/node_run_list_add_spec.rb
1253
1452
  - spec/unit/knife/node_run_list_remove_spec.rb
1453
+ - spec/unit/knife/node_run_list_set_spec.rb
1254
1454
  - spec/unit/knife/node_show_spec.rb
1255
1455
  - spec/unit/knife/role_bulk_delete_spec.rb
1256
1456
  - spec/unit/knife/role_create_spec.rb
@@ -1284,6 +1484,7 @@ files:
1284
1484
  - spec/unit/mixin/securable_spec.rb
1285
1485
  - spec/unit/mixin/shell_out_spec.rb
1286
1486
  - spec/unit/mixin/template_spec.rb
1487
+ - spec/unit/mixin/windows_architecture_helper_spec.rb
1287
1488
  - spec/unit/mixin/xml_escape_spec.rb
1288
1489
  - spec/unit/monkey_patches/string_spec.rb
1289
1490
  - spec/unit/node/attribute_spec.rb
@@ -1291,6 +1492,7 @@ files:
1291
1492
  - spec/unit/node_spec.rb
1292
1493
  - spec/unit/platform_spec.rb
1293
1494
  - spec/unit/provider/breakpoint_spec.rb
1495
+ - spec/unit/provider/cookbook_file/content_spec.rb
1294
1496
  - spec/unit/provider/cookbook_file_spec.rb
1295
1497
  - spec/unit/provider/cron/solaris_spec.rb
1296
1498
  - spec/unit/provider/cron_spec.rb
@@ -1301,6 +1503,7 @@ files:
1301
1503
  - spec/unit/provider/env_spec.rb
1302
1504
  - spec/unit/provider/erl_call_spec.rb
1303
1505
  - spec/unit/provider/execute_spec.rb
1506
+ - spec/unit/provider/file/content_spec.rb
1304
1507
  - spec/unit/provider/file_spec.rb
1305
1508
  - spec/unit/provider/git_spec.rb
1306
1509
  - spec/unit/provider/group/dscl_spec.rb
@@ -1312,6 +1515,8 @@ files:
1312
1515
  - spec/unit/provider/group/windows_spec.rb
1313
1516
  - spec/unit/provider/group_spec.rb
1314
1517
  - spec/unit/provider/http_request_spec.rb
1518
+ - spec/unit/provider/ifconfig/debian_spec.rb
1519
+ - spec/unit/provider/ifconfig/redhat_spec.rb
1315
1520
  - spec/unit/provider/ifconfig_spec.rb
1316
1521
  - spec/unit/provider/link_spec.rb
1317
1522
  - spec/unit/provider/log_spec.rb
@@ -1335,8 +1540,15 @@ files:
1335
1540
  - spec/unit/provider/package/yum_spec.rb
1336
1541
  - spec/unit/provider/package/zypper_spec.rb
1337
1542
  - spec/unit/provider/package_spec.rb
1543
+ - spec/unit/provider/powershell_spec.rb
1338
1544
  - spec/unit/provider/registry_key_spec.rb
1339
1545
  - spec/unit/provider/remote_directory_spec.rb
1546
+ - spec/unit/provider/remote_file/cache_control_data_spec.rb
1547
+ - spec/unit/provider/remote_file/content_spec.rb
1548
+ - spec/unit/provider/remote_file/fetcher_spec.rb
1549
+ - spec/unit/provider/remote_file/ftp_spec.rb
1550
+ - spec/unit/provider/remote_file/http_spec.rb
1551
+ - spec/unit/provider/remote_file/local_file_spec.rb
1340
1552
  - spec/unit/provider/remote_file_spec.rb
1341
1553
  - spec/unit/provider/route_spec.rb
1342
1554
  - spec/unit/provider/ruby_block_spec.rb
@@ -1357,9 +1569,11 @@ files:
1357
1569
  - spec/unit/provider/service/windows_spec.rb
1358
1570
  - spec/unit/provider/service_spec.rb
1359
1571
  - spec/unit/provider/subversion_spec.rb
1572
+ - spec/unit/provider/template/content_spec.rb
1360
1573
  - spec/unit/provider/template_spec.rb
1361
1574
  - spec/unit/provider/user/dscl_spec.rb
1362
1575
  - spec/unit/provider/user/pw_spec.rb
1576
+ - spec/unit/provider/user/solaris_spec.rb
1363
1577
  - spec/unit/provider/user/useradd_spec.rb
1364
1578
  - spec/unit/provider/user/windows_spec.rb
1365
1579
  - spec/unit/provider/user_spec.rb
@@ -1368,8 +1582,10 @@ files:
1368
1582
  - spec/unit/registry_helper_spec.rb
1369
1583
  - spec/unit/resource/apt_package_spec.rb
1370
1584
  - spec/unit/resource/bash_spec.rb
1585
+ - spec/unit/resource/batch_spec.rb
1371
1586
  - spec/unit/resource/breakpoint_spec.rb
1372
1587
  - spec/unit/resource/chef_gem_spec.rb
1588
+ - spec/unit/resource/conditional_action_not_nothing_spec.rb
1373
1589
  - spec/unit/resource/conditional_spec.rb
1374
1590
  - spec/unit/resource/cookbook_file_spec.rb
1375
1591
  - spec/unit/resource/cron_spec.rb
@@ -1400,6 +1616,7 @@ files:
1400
1616
  - spec/unit/resource/pacman_package_spec.rb
1401
1617
  - spec/unit/resource/perl_spec.rb
1402
1618
  - spec/unit/resource/portage_package_spec.rb
1619
+ - spec/unit/resource/powershell_spec.rb
1403
1620
  - spec/unit/resource/python_spec.rb
1404
1621
  - spec/unit/resource/registry_key_spec.rb
1405
1622
  - spec/unit/resource/remote_directory_spec.rb
@@ -1443,8 +1660,13 @@ files:
1443
1660
  - spec/unit/shell_out_spec.rb
1444
1661
  - spec/unit/shell_spec.rb
1445
1662
  - spec/unit/user_spec.rb
1663
+ - spec/unit/util/backup_spec.rb
1664
+ - spec/unit/util/diff_spec.rb
1446
1665
  - spec/unit/util/file_edit_spec.rb
1666
+ - spec/unit/util/selinux_spec.rb
1667
+ - spec/unit/version/platform_spec.rb
1447
1668
  - spec/unit/version_class_spec.rb
1669
+ - spec/unit/version_constraint/platform_spec.rb
1448
1670
  - spec/unit/version_constraint_spec.rb
1449
1671
  - bin/chef-client
1450
1672
  - bin/chef-solo
@@ -1452,6 +1674,7 @@ files:
1452
1674
  - bin/chef-shell
1453
1675
  - bin/shef
1454
1676
  - bin/chef-apply
1677
+ - bin/chef-service-manager
1455
1678
  homepage: http://wiki.opscode.com/display/chef
1456
1679
  licenses: []
1457
1680
  post_install_message:
@@ -1467,9 +1690,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
1467
1690
  required_rubygems_version: !ruby/object:Gem::Requirement
1468
1691
  none: false
1469
1692
  requirements:
1470
- - - ! '>='
1693
+ - - ! '>'
1471
1694
  - !ruby/object:Gem::Version
1472
- version: '0'
1695
+ version: 1.3.1
1473
1696
  requirements: []
1474
1697
  rubyforge_project:
1475
1698
  rubygems_version: 1.8.23