chef 12.0.0.alpha.2 → 12.0.0.rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (626) hide show
  1. data/CONTRIBUTING.md +9 -0
  2. data/README.md +1 -1
  3. data/Rakefile +12 -0
  4. data/bin/chef-service-manager +1 -1
  5. data/bin/chef-windows-service +35 -0
  6. data/distro/common/html/_sources/ctl_chef_server.txt +307 -10
  7. data/distro/common/html/ctl_chef_client.html +3 -7
  8. data/distro/common/html/ctl_chef_server.html +609 -41
  9. data/distro/common/html/ctl_chef_shell.html +2 -2
  10. data/distro/common/html/ctl_chef_solo.html +1 -1
  11. data/distro/common/html/index.html +13 -13
  12. data/distro/common/html/knife.html +10 -10
  13. data/distro/common/html/knife_bootstrap.html +8 -8
  14. data/distro/common/html/knife_client.html +12 -12
  15. data/distro/common/html/knife_common_options.html +7 -7
  16. data/distro/common/html/knife_configure.html +3 -3
  17. data/distro/common/html/knife_cookbook.html +19 -19
  18. data/distro/common/html/knife_cookbook_site.html +28 -28
  19. data/distro/common/html/knife_data_bag.html +28 -13
  20. data/distro/common/html/knife_delete.html +2 -2
  21. data/distro/common/html/knife_deps.html +3 -3
  22. data/distro/common/html/knife_diff.html +4 -4
  23. data/distro/common/html/knife_download.html +3 -3
  24. data/distro/common/html/knife_edit.html +2 -2
  25. data/distro/common/html/knife_environment.html +14 -14
  26. data/distro/common/html/knife_exec.html +11 -11
  27. data/distro/common/html/knife_index_rebuild.html +2 -2
  28. data/distro/common/html/knife_list.html +3 -3
  29. data/distro/common/html/knife_node.html +23 -23
  30. data/distro/common/html/knife_raw.html +4 -4
  31. data/distro/common/html/knife_recipe_list.html +3 -3
  32. data/distro/common/html/knife_role.html +11 -11
  33. data/distro/common/html/knife_search.html +4 -4
  34. data/distro/common/html/knife_serve.html +3 -3
  35. data/distro/common/html/knife_show.html +3 -3
  36. data/distro/common/html/knife_ssh.html +7 -7
  37. data/distro/common/html/knife_ssl_check.html +7 -7
  38. data/distro/common/html/knife_ssl_fetch.html +9 -9
  39. data/distro/common/html/knife_status.html +3 -3
  40. data/distro/common/html/knife_tag.html +9 -9
  41. data/distro/common/html/knife_upload.html +3 -3
  42. data/distro/common/html/knife_user.html +9 -9
  43. data/distro/common/html/knife_using.html +11 -11
  44. data/distro/common/html/knife_xargs.html +14 -5
  45. data/distro/common/html/search.html +2 -2
  46. data/distro/common/html/searchindex.js +1 -1
  47. data/distro/common/man/man1/chef-shell.1 +2 -2
  48. data/distro/common/man/man1/knife-bootstrap.1 +7 -7
  49. data/distro/common/man/man1/knife-client.1 +10 -10
  50. data/distro/common/man/man1/knife-configure.1 +5 -5
  51. data/distro/common/man/man1/knife-cookbook-site.1 +24 -24
  52. data/distro/common/man/man1/knife-cookbook.1 +12 -12
  53. data/distro/common/man/man1/knife-data-bag.1 +34 -10
  54. data/distro/common/man/man1/knife-delete.1 +5 -5
  55. data/distro/common/man/man1/knife-deps.1 +5 -5
  56. data/distro/common/man/man1/knife-diff.1 +7 -7
  57. data/distro/common/man/man1/knife-download.1 +5 -5
  58. data/distro/common/man/man1/knife-edit.1 +5 -5
  59. data/distro/common/man/man1/knife-environment.1 +11 -11
  60. data/distro/common/man/man1/knife-exec.1 +11 -11
  61. data/distro/common/man/man1/knife-index-rebuild.1 +1 -1
  62. data/distro/common/man/man1/knife-list.1 +5 -5
  63. data/distro/common/man/man1/knife-node.1 +16 -16
  64. data/distro/common/man/man1/knife-raw.1 +6 -6
  65. data/distro/common/man/man1/knife-recipe-list.1 +1 -1
  66. data/distro/common/man/man1/knife-role.1 +7 -7
  67. data/distro/common/man/man1/knife-search.1 +6 -6
  68. data/distro/common/man/man1/knife-serve.1 +6 -6
  69. data/distro/common/man/man1/knife-show.1 +5 -5
  70. data/distro/common/man/man1/knife-ssh.1 +9 -9
  71. data/distro/common/man/man1/knife-ssl-check.1 +7 -7
  72. data/distro/common/man/man1/knife-ssl-fetch.1 +9 -9
  73. data/distro/common/man/man1/knife-status.1 +5 -5
  74. data/distro/common/man/man1/knife-tag.1 +8 -8
  75. data/distro/common/man/man1/knife-upload.1 +5 -5
  76. data/distro/common/man/man1/knife-user.1 +8 -8
  77. data/distro/common/man/man1/knife-xargs.1 +36 -10
  78. data/distro/common/man/man1/knife.1 +14 -14
  79. data/distro/common/man/man8/chef-client.8 +3 -10
  80. data/distro/common/man/man8/chef-solo.8 +1 -1
  81. data/lib/chef/application.rb +313 -241
  82. data/lib/chef/application/apply.rb +10 -8
  83. data/lib/chef/application/client.rb +58 -33
  84. data/lib/chef/application/solo.rb +33 -12
  85. data/lib/chef/chef_fs/chef_fs_data_store.rb +1 -1
  86. data/lib/chef/chef_fs/command_line.rb +1 -1
  87. data/lib/chef/chef_fs/file_system/organization_invites_entry.rb +2 -1
  88. data/lib/chef/chef_fs/file_system/organization_members_entry.rb +2 -1
  89. data/lib/chef/chef_fs/file_system/rest_list_entry.rb +2 -1
  90. data/lib/chef/client.rb +18 -48
  91. data/lib/chef/config.rb +43 -11
  92. data/lib/chef/cookbook/cookbook_version_loader.rb +14 -7
  93. data/lib/chef/cookbook/metadata.rb +81 -38
  94. data/lib/chef/cookbook/syntax_check.rb +18 -52
  95. data/lib/chef/cookbook_loader.rb +1 -1
  96. data/lib/chef/cookbook_version.rb +58 -39
  97. data/lib/chef/data_bag.rb +2 -2
  98. data/lib/chef/deprecation/provider/file.rb +2 -1
  99. data/lib/chef/dsl/data_query.rb +2 -29
  100. data/lib/chef/dsl/recipe.rb +8 -22
  101. data/lib/chef/encrypted_data_bag_item/assertions.rb +1 -1
  102. data/lib/chef/encrypted_data_bag_item/check_encrypted.rb +56 -0
  103. data/lib/chef/encrypted_data_bag_item/encrypted_data_bag_item_assertions.rb +1 -1
  104. data/lib/chef/event_loggers/base.rb +62 -0
  105. data/lib/chef/event_loggers/windows_eventlog.rb +104 -0
  106. data/lib/chef/exceptions.rb +18 -1
  107. data/lib/chef/file_cache.rb +3 -2
  108. data/lib/chef/guard_interpreter/resource_guard_interpreter.rb +15 -6
  109. data/lib/chef/http.rb +20 -13
  110. data/lib/chef/http/ssl_policies.rb +2 -1
  111. data/lib/chef/json_compat.rb +9 -3
  112. data/lib/chef/knife.rb +2 -1
  113. data/lib/chef/knife/bootstrap.rb +12 -18
  114. data/lib/chef/knife/bootstrap/archlinux-gems.erb +2 -2
  115. data/lib/chef/knife/bootstrap/chef-aix.erb +2 -2
  116. data/lib/chef/knife/bootstrap/chef-full.erb +2 -2
  117. data/lib/chef/knife/cookbook_create.rb +1 -1
  118. data/lib/chef/knife/cookbook_site_share.rb +43 -8
  119. data/lib/chef/knife/core/bootstrap_context.rb +6 -11
  120. data/lib/chef/knife/core/object_loader.rb +5 -5
  121. data/lib/chef/knife/core/status_presenter.rb +156 -0
  122. data/lib/chef/knife/core/subcommand_loader.rb +6 -5
  123. data/lib/chef/knife/core/ui.rb +4 -4
  124. data/lib/chef/knife/data_bag_create.rb +7 -32
  125. data/lib/chef/knife/data_bag_edit.rb +24 -43
  126. data/lib/chef/knife/data_bag_from_file.rb +6 -31
  127. data/lib/chef/knife/data_bag_secret_options.rb +142 -0
  128. data/lib/chef/knife/data_bag_show.rb +19 -33
  129. data/lib/chef/knife/node_from_file.rb +9 -8
  130. data/lib/chef/knife/ssh.rb +0 -7
  131. data/lib/chef/knife/ssl_check.rb +70 -6
  132. data/lib/chef/knife/status.rb +11 -58
  133. data/lib/chef/mixin/command/unix.rb +2 -2
  134. data/lib/chef/mixin/convert_to_class_name.rb +54 -0
  135. data/lib/chef/mixin/descendants_tracker.rb +82 -0
  136. data/lib/chef/mixin/homebrew_user.rb +68 -0
  137. data/lib/chef/mixin/shell_out.rb +0 -4
  138. data/lib/chef/mixin/windows_architecture_helper.rb +16 -0
  139. data/lib/chef/mixin/windows_env_helper.rb +56 -0
  140. data/lib/chef/node.rb +2 -2
  141. data/lib/chef/node_map.rb +146 -0
  142. data/lib/chef/platform/provider_mapping.rb +11 -39
  143. data/lib/chef/platform/provider_priority_map.rb +80 -0
  144. data/lib/chef/platform/query_helpers.rb +5 -1
  145. data/lib/chef/platform/service_helpers.rb +113 -0
  146. data/lib/chef/provider.rb +24 -0
  147. data/lib/chef/provider/breakpoint.rb +2 -0
  148. data/lib/chef/provider/cookbook_file.rb +2 -0
  149. data/lib/chef/provider/cron.rb +1 -1
  150. data/lib/chef/provider/cron/unix.rb +13 -9
  151. data/lib/chef/provider/deploy.rb +3 -2
  152. data/lib/chef/provider/deploy/revision.rb +4 -2
  153. data/lib/chef/provider/deploy/timestamped.rb +2 -0
  154. data/lib/chef/provider/directory.rb +2 -0
  155. data/lib/chef/provider/dsc_script.rb +179 -0
  156. data/lib/chef/provider/env.rb +25 -10
  157. data/lib/chef/provider/env/windows.rb +9 -16
  158. data/lib/chef/provider/erl_call.rb +2 -0
  159. data/lib/chef/provider/execute.rb +5 -2
  160. data/lib/chef/provider/file.rb +2 -0
  161. data/lib/chef/provider/git.rb +51 -23
  162. data/lib/chef/provider/group/dscl.rb +2 -2
  163. data/lib/chef/provider/group/pw.rb +9 -13
  164. data/lib/chef/provider/http_request.rb +2 -0
  165. data/lib/chef/provider/link.rb +3 -0
  166. data/lib/chef/provider/log.rb +2 -0
  167. data/lib/chef/provider/lwrp_base.rb +11 -9
  168. data/lib/chef/provider/mount/mount.rb +1 -1
  169. data/lib/chef/provider/package/aix.rb +2 -0
  170. data/lib/chef/provider/package/apt.rb +2 -0
  171. data/lib/chef/provider/package/dpkg.rb +2 -0
  172. data/lib/chef/provider/package/easy_install.rb +2 -0
  173. data/lib/chef/provider/package/freebsd/pkg.rb +2 -1
  174. data/lib/chef/provider/package/freebsd/pkgng.rb +1 -1
  175. data/lib/chef/provider/package/freebsd/port.rb +1 -9
  176. data/lib/chef/provider/package/homebrew.rb +127 -0
  177. data/lib/chef/provider/package/ips.rb +2 -0
  178. data/lib/chef/provider/package/macports.rb +3 -0
  179. data/lib/chef/provider/package/pacman.rb +5 -4
  180. data/lib/chef/provider/package/paludis.rb +4 -2
  181. data/lib/chef/provider/package/portage.rb +4 -1
  182. data/lib/chef/provider/package/rpm.rb +2 -0
  183. data/lib/chef/provider/package/rubygems.rb +4 -0
  184. data/lib/chef/provider/package/smartos.rb +2 -0
  185. data/lib/chef/provider/package/solaris.rb +2 -0
  186. data/lib/chef/provider/package/windows.rb +5 -2
  187. data/lib/chef/provider/package/yum.rb +2 -0
  188. data/lib/chef/provider/powershell_script.rb +3 -1
  189. data/lib/chef/provider/remote_directory.rb +25 -10
  190. data/lib/chef/provider/route.rb +2 -0
  191. data/lib/chef/provider/ruby_block.rb +2 -0
  192. data/lib/chef/provider/script.rb +6 -0
  193. data/lib/chef/provider/service/aix.rb +128 -0
  194. data/lib/chef/provider/service/aixinit.rb +117 -0
  195. data/lib/chef/provider/service/arch.rb +6 -0
  196. data/lib/chef/provider/service/debian.rb +35 -29
  197. data/lib/chef/provider/service/freebsd.rb +7 -1
  198. data/lib/chef/provider/service/gentoo.rb +5 -1
  199. data/lib/chef/provider/service/init.rb +2 -0
  200. data/lib/chef/provider/service/insserv.rb +15 -8
  201. data/lib/chef/provider/service/invokercd.rb +6 -0
  202. data/lib/chef/provider/service/macosx.rb +4 -1
  203. data/lib/chef/provider/service/redhat.rb +9 -3
  204. data/lib/chef/provider/service/simple.rb +2 -0
  205. data/lib/chef/provider/service/solaris.rb +2 -0
  206. data/lib/chef/provider/service/systemd.rb +7 -0
  207. data/lib/chef/provider/service/upstart.rb +7 -0
  208. data/lib/chef/provider/service/windows.rb +5 -0
  209. data/lib/chef/provider/subversion.rb +2 -0
  210. data/lib/chef/provider/template.rb +1 -0
  211. data/lib/chef/provider/user/dscl.rb +3 -2
  212. data/lib/chef/provider/whyrun_safe_ruby_block.rb +2 -0
  213. data/lib/chef/provider_resolver.rb +103 -0
  214. data/lib/chef/providers.rb +6 -2
  215. data/lib/chef/recipe.rb +2 -0
  216. data/lib/chef/resource.rb +69 -78
  217. data/lib/chef/resource/apt_package.rb +3 -1
  218. data/lib/chef/resource/bash.rb +1 -0
  219. data/lib/chef/resource/bff_package.rb +0 -1
  220. data/lib/chef/resource/breakpoint.rb +1 -1
  221. data/lib/chef/resource/chef_gem.rb +1 -2
  222. data/lib/chef/resource/conditional.rb +26 -6
  223. data/lib/chef/resource/cookbook_file.rb +2 -3
  224. data/lib/chef/resource/csh.rb +1 -0
  225. data/lib/chef/resource/deploy.rb +0 -1
  226. data/lib/chef/resource/deploy_revision.rb +6 -1
  227. data/lib/chef/resource/directory.rb +1 -2
  228. data/lib/chef/resource/dpkg_package.rb +2 -1
  229. data/lib/chef/resource/dsc_script.rb +125 -0
  230. data/lib/chef/resource/easy_install_package.rb +2 -1
  231. data/lib/chef/resource/erl_call.rb +1 -0
  232. data/lib/chef/resource/execute.rb +26 -9
  233. data/lib/chef/resource/file.rb +1 -3
  234. data/lib/chef/resource/freebsd_package.rb +10 -23
  235. data/lib/chef/resource/gem_package.rb +2 -1
  236. data/lib/chef/resource/git.rb +2 -1
  237. data/lib/chef/resource/homebrew_package.rb +46 -0
  238. data/lib/chef/resource/http_request.rb +1 -0
  239. data/lib/chef/resource/ips_package.rb +3 -1
  240. data/lib/chef/resource/link.rb +1 -2
  241. data/lib/chef/resource/log.rb +4 -0
  242. data/lib/chef/resource/lwrp_base.rb +24 -15
  243. data/lib/chef/resource/macports_package.rb +3 -1
  244. data/lib/chef/resource/pacman_package.rb +2 -1
  245. data/lib/chef/resource/paludis_package.rb +3 -1
  246. data/lib/chef/resource/perl.rb +1 -0
  247. data/lib/chef/resource/powershell_script.rb +0 -2
  248. data/lib/chef/resource/python.rb +1 -1
  249. data/lib/chef/resource/remote_directory.rb +1 -2
  250. data/lib/chef/resource/remote_file.rb +1 -1
  251. data/lib/chef/resource/rpm_package.rb +2 -1
  252. data/lib/chef/resource/ruby.rb +1 -0
  253. data/lib/chef/resource/ruby_block.rb +3 -0
  254. data/lib/chef/resource/script.rb +2 -25
  255. data/lib/chef/resource/service.rb +0 -4
  256. data/lib/chef/resource/smartos_package.rb +3 -4
  257. data/lib/chef/resource/solaris_package.rb +7 -1
  258. data/lib/chef/resource/subversion.rb +0 -1
  259. data/lib/chef/resource/template.rb +2 -3
  260. data/lib/chef/resource/timestamped_deploy.rb +1 -2
  261. data/lib/chef/resource/whyrun_safe_ruby_block.rb +0 -1
  262. data/lib/chef/resource/windows_package.rb +3 -4
  263. data/lib/chef/resource/windows_script.rb +3 -0
  264. data/lib/chef/resource/windows_service.rb +2 -2
  265. data/lib/chef/resource/yum_package.rb +3 -1
  266. data/lib/chef/resource_collection.rb +50 -227
  267. data/lib/chef/resource_collection/resource_collection_serialization.rb +59 -0
  268. data/lib/chef/resource_collection/resource_list.rb +89 -0
  269. data/lib/chef/resource_collection/resource_set.rb +170 -0
  270. data/lib/chef/resources.rb +2 -0
  271. data/lib/chef/role.rb +1 -1
  272. data/lib/chef/run_context.rb +5 -1
  273. data/lib/chef/shell/ext.rb +1 -1
  274. data/lib/chef/util/backup.rb +3 -2
  275. data/lib/chef/util/dsc/configuration_generator.rb +115 -0
  276. data/lib/chef/util/dsc/lcm_output_parser.rb +133 -0
  277. data/lib/chef/util/dsc/local_configuration_manager.rb +141 -0
  278. data/lib/chef/util/dsc/resource_info.rb +26 -0
  279. data/lib/chef/util/path_helper.rb +12 -0
  280. data/lib/chef/util/powershell/cmdlet.rb +136 -0
  281. data/lib/chef/util/powershell/cmdlet_result.rb +46 -0
  282. data/lib/chef/version.rb +1 -1
  283. data/lib/chef/win32/api/system.rb +9 -0
  284. data/lib/chef/win32/version.rb +2 -0
  285. data/spec/.DS_Store +0 -0
  286. data/spec/data/.DS_Store +0 -0
  287. data/spec/data/bootstrap/test-hints.erb +1 -1
  288. data/spec/data/bootstrap/test.erb +1 -1
  289. data/spec/data/cb_version_cookbooks/cookbook2/files/test.txt +0 -0
  290. data/spec/data/cb_version_cookbooks/cookbook2/templates/test.erb +0 -0
  291. data/spec/data/cookbooks/ignorken/files/default/not_me.rb +2 -0
  292. data/spec/data/cookbooks/ignorken/templates/ubuntu-12.10/not_me.rb +2 -0
  293. data/spec/data/cookbooks/openldap/libraries/openldap.rb +4 -0
  294. data/spec/data/cookbooks/openldap/libraries/openldap/version.rb +3 -0
  295. data/spec/data/lwrp/.DS_Store +0 -0
  296. data/spec/data/lwrp/providers/.DS_Store +0 -0
  297. data/spec/data/lwrp/providers/buck_passer.rb +9 -2
  298. data/spec/data/lwrp/resources/.DS_Store +0 -0
  299. data/spec/data/lwrp/resources/foo.rb +3 -2
  300. data/spec/data/lwrp_override/.DS_Store +0 -0
  301. data/spec/data/lwrp_override/providers/.DS_Store +0 -0
  302. data/spec/data/lwrp_override/providers/buck_passer.rb +5 -10
  303. data/spec/data/lwrp_override/resources/.DS_Store +0 -0
  304. data/spec/data/lwrp_override/resources/foo.rb +4 -3
  305. data/spec/functional/assets/chefinittest +34 -0
  306. data/spec/functional/assets/testchefsubsys +11 -0
  307. data/spec/functional/dsl/reboot_pending_spec.rb +19 -16
  308. data/spec/functional/event_loggers/windows_eventlog_spec.rb +82 -0
  309. data/spec/functional/knife/cookbook_delete_spec.rb +3 -3
  310. data/spec/functional/knife/exec_spec.rb +1 -1
  311. data/spec/functional/resource/aix_service_spec.rb +136 -0
  312. data/spec/functional/resource/aixinit_service_spec.rb +211 -0
  313. data/spec/functional/resource/base.rb +1 -0
  314. data/spec/functional/resource/batch_spec.rb +4 -11
  315. data/spec/functional/resource/cron_spec.rb +7 -1
  316. data/spec/functional/resource/dsc_script_spec.rb +382 -0
  317. data/spec/functional/resource/env_spec.rb +54 -0
  318. data/spec/functional/resource/execute_spec.rb +113 -0
  319. data/spec/functional/resource/file_spec.rb +2 -0
  320. data/spec/functional/resource/group_spec.rb +7 -4
  321. data/spec/functional/resource/powershell_spec.rb +198 -185
  322. data/spec/functional/resource/rpm_spec.rb +5 -4
  323. data/spec/functional/resource/user/dscl_spec.rb +2 -1
  324. data/spec/functional/util/path_helper_spec.rb +37 -0
  325. data/spec/functional/util/powershell/cmdlet_spec.rb +114 -0
  326. data/spec/integration/client/client_spec.rb +1 -1
  327. data/spec/integration/client/ipv6_spec.rb +1 -1
  328. data/spec/integration/knife/chef_fs_data_store_spec.rb +1 -1
  329. data/spec/integration/knife/chef_repo_path_spec.rb +1 -1
  330. data/spec/integration/knife/chef_repository_file_system_spec.rb +1 -1
  331. data/spec/integration/knife/chefignore_spec.rb +1 -1
  332. data/spec/integration/knife/common_options_spec.rb +1 -1
  333. data/spec/integration/knife/cookbook_api_ipv6_spec.rb +2 -2
  334. data/spec/integration/knife/delete_spec.rb +1 -1
  335. data/spec/integration/knife/deps_spec.rb +1 -1
  336. data/spec/integration/knife/diff_spec.rb +1 -1
  337. data/spec/integration/knife/download_spec.rb +1 -1
  338. data/spec/integration/knife/list_spec.rb +1 -1
  339. data/spec/integration/knife/raw_spec.rb +1 -1
  340. data/spec/integration/knife/redirection_spec.rb +1 -1
  341. data/spec/integration/knife/serve_spec.rb +1 -1
  342. data/spec/integration/knife/show_spec.rb +1 -1
  343. data/spec/integration/knife/upload_spec.rb +4 -3
  344. data/spec/integration/recipes/lwrp_inline_resources_spec.rb +1 -1
  345. data/spec/spec_helper.rb +15 -0
  346. data/spec/support/chef_helpers.rb +1 -0
  347. data/spec/support/lib/chef/provider/snakeoil.rb +1 -0
  348. data/spec/support/lib/chef/resource/zen_follower.rb +1 -7
  349. data/spec/support/platform_helpers.rb +28 -0
  350. data/spec/support/shared/functional/file_resource.rb +6 -0
  351. data/spec/support/shared/functional/windows_script.rb +118 -0
  352. data/spec/support/shared/integration/integration_helper.rb +5 -2
  353. data/spec/support/shared/matchers/exit_with_code.rb +28 -0
  354. data/spec/support/shared/matchers/match_environment_variable.rb +17 -0
  355. data/spec/support/shared/shared_examples.rb +14 -0
  356. data/spec/support/shared/unit/execute_resource.rb +0 -7
  357. data/spec/support/shared/unit/resource/static_provider_resolution.rb +71 -0
  358. data/spec/support/shared/unit/script_resource.rb +1 -1
  359. data/spec/support/shared/unit/windows_script_resource.rb +35 -2
  360. data/spec/tiny_server.rb +1 -2
  361. data/spec/unit/api_client_spec.rb +5 -1
  362. data/spec/unit/application/{apply.rb → apply_spec.rb} +13 -5
  363. data/spec/unit/application/client_spec.rb +106 -13
  364. data/spec/unit/application/solo_spec.rb +25 -1
  365. data/spec/unit/client_spec.rb +1 -26
  366. data/spec/unit/config_fetcher_spec.rb +2 -1
  367. data/spec/unit/config_spec.rb +91 -2
  368. data/spec/unit/cookbook/cookbook_version_loader_spec.rb +8 -0
  369. data/spec/unit/cookbook/metadata_spec.rb +43 -6
  370. data/spec/unit/cookbook/syntax_check_spec.rb +8 -2
  371. data/spec/unit/cookbook_loader_spec.rb +4 -2
  372. data/spec/unit/cookbook_version_spec.rb +83 -2
  373. data/spec/unit/data_bag_item_spec.rb +5 -1
  374. data/spec/unit/data_bag_spec.rb +6 -1
  375. data/spec/unit/dsl/data_query_spec.rb +8 -110
  376. data/spec/unit/encrypted_data_bag_item/check_encrypted_spec.rb +95 -0
  377. data/spec/unit/encrypted_data_bag_item_spec.rb +16 -23
  378. data/spec/unit/environment_spec.rb +6 -2
  379. data/spec/unit/exceptions_spec.rb +6 -0
  380. data/spec/unit/guard_interpreter/resource_guard_interpreter_spec.rb +16 -15
  381. data/spec/unit/json_compat_spec.rb +12 -2
  382. data/spec/unit/knife/bootstrap_spec.rb +16 -63
  383. data/spec/unit/knife/cookbook_site_share_spec.rb +59 -6
  384. data/spec/unit/knife/core/bootstrap_context_spec.rb +8 -37
  385. data/spec/unit/knife/core/subcommand_loader_spec.rb +1 -1
  386. data/spec/unit/knife/core/ui_spec.rb +28 -0
  387. data/spec/unit/knife/data_bag_create_spec.rb +63 -71
  388. data/spec/unit/knife/data_bag_edit_spec.rb +83 -49
  389. data/spec/unit/knife/data_bag_from_file_spec.rb +104 -126
  390. data/spec/unit/knife/data_bag_secret_options_spec.rb +165 -0
  391. data/spec/unit/knife/data_bag_show_spec.rb +74 -72
  392. data/spec/unit/knife/environment_from_file_spec.rb +3 -2
  393. data/spec/unit/knife/ssl_check_spec.rb +46 -1
  394. data/spec/unit/knife/status_spec.rb +1 -2
  395. data/spec/unit/knife_spec.rb +18 -1
  396. data/spec/unit/lwrp_spec.rb +29 -8
  397. data/spec/unit/mixin/homebrew_user_spec.rb +100 -0
  398. data/spec/unit/node_map_spec.rb +155 -0
  399. data/spec/unit/node_spec.rb +11 -0
  400. data/spec/unit/platform/query_helpers_spec.rb +23 -0
  401. data/spec/unit/platform_spec.rb +23 -0
  402. data/spec/unit/provider/breakpoint_spec.rb +9 -9
  403. data/spec/unit/provider/cookbook_file/content_spec.rb +3 -3
  404. data/spec/unit/provider/cookbook_file_spec.rb +1 -1
  405. data/spec/unit/provider/cron/unix_spec.rb +78 -60
  406. data/spec/unit/provider/cron_spec.rb +175 -175
  407. data/spec/unit/provider/deploy/revision_spec.rb +22 -21
  408. data/spec/unit/provider/deploy/timestamped_spec.rb +3 -3
  409. data/spec/unit/provider/deploy_spec.rb +231 -230
  410. data/spec/unit/provider/directory_spec.rb +55 -55
  411. data/spec/unit/provider/dsc_script_spec.rb +174 -0
  412. data/spec/unit/provider/env/windows_spec.rb +70 -34
  413. data/spec/unit/provider/env_spec.rb +95 -49
  414. data/spec/unit/provider/erl_call_spec.rb +9 -9
  415. data/spec/unit/provider/execute_spec.rb +43 -27
  416. data/spec/unit/provider/file/content_spec.rb +9 -9
  417. data/spec/unit/provider/file_spec.rb +1 -1
  418. data/spec/unit/provider/git_spec.rb +221 -159
  419. data/spec/unit/provider/group/dscl_spec.rb +64 -63
  420. data/spec/unit/provider/group/gpasswd_spec.rb +14 -14
  421. data/spec/unit/provider/group/groupadd_spec.rb +33 -33
  422. data/spec/unit/provider/group/groupmod_spec.rb +23 -23
  423. data/spec/unit/provider/group/pw_spec.rb +21 -21
  424. data/spec/unit/provider/group/usermod_spec.rb +20 -20
  425. data/spec/unit/provider/group/windows_spec.rb +15 -15
  426. data/spec/unit/provider/group_spec.rb +76 -76
  427. data/spec/unit/provider/http_request_spec.rb +30 -30
  428. data/spec/unit/provider/ifconfig/aix_spec.rb +20 -20
  429. data/spec/unit/provider/ifconfig/debian_spec.rb +25 -9
  430. data/spec/unit/provider/ifconfig/redhat_spec.rb +13 -13
  431. data/spec/unit/provider/ifconfig_spec.rb +43 -43
  432. data/spec/unit/provider/link_spec.rb +60 -60
  433. data/spec/unit/provider/log_spec.rb +0 -4
  434. data/spec/unit/provider/mdadm_spec.rb +23 -23
  435. data/spec/unit/provider/mount/aix_spec.rb +17 -17
  436. data/spec/unit/provider/mount/mount_spec.rb +115 -119
  437. data/spec/unit/provider/mount/solaris_spec.rb +72 -72
  438. data/spec/unit/provider/mount/windows_spec.rb +24 -24
  439. data/spec/unit/provider/ohai_spec.rb +11 -11
  440. data/spec/unit/provider/package/aix_spec.rb +34 -34
  441. data/spec/unit/provider/package/apt_spec.rb +36 -36
  442. data/spec/unit/provider/package/dpkg_spec.rb +27 -27
  443. data/spec/unit/provider/package/easy_install_spec.rb +16 -16
  444. data/spec/unit/provider/package/freebsd/pkg_spec.rb +53 -53
  445. data/spec/unit/provider/package/freebsd/pkgng_spec.rb +24 -24
  446. data/spec/unit/provider/package/freebsd/port_spec.rb +45 -35
  447. data/spec/unit/provider/package/homebrew_spec.rb +266 -0
  448. data/spec/unit/provider/package/ips_spec.rb +34 -34
  449. data/spec/unit/provider/package/macports_spec.rb +49 -49
  450. data/spec/unit/provider/package/pacman_spec.rb +35 -39
  451. data/spec/unit/provider/package/paludis_spec.rb +20 -20
  452. data/spec/unit/provider/package/portage_spec.rb +38 -38
  453. data/spec/unit/provider/package/rpm_spec.rb +29 -29
  454. data/spec/unit/provider/package/rubygems_spec.rb +284 -270
  455. data/spec/unit/provider/package/smartos_spec.rb +15 -15
  456. data/spec/unit/provider/package/solaris_spec.rb +35 -35
  457. data/spec/unit/provider/package/windows/msi_spec.rb +3 -3
  458. data/spec/unit/provider/package/windows_spec.rb +6 -6
  459. data/spec/unit/provider/package/yum_spec.rb +416 -416
  460. data/spec/unit/provider/package/zypper_spec.rb +47 -47
  461. data/spec/unit/provider/package_spec.rb +107 -107
  462. data/spec/unit/provider/powershell_spec.rb +1 -1
  463. data/spec/unit/provider/registry_key_spec.rb +61 -61
  464. data/spec/unit/provider/remote_directory_spec.rb +36 -36
  465. data/spec/unit/provider/remote_file/cache_control_data_spec.rb +24 -24
  466. data/spec/unit/provider/remote_file/content_spec.rb +45 -45
  467. data/spec/unit/provider/remote_file/fetcher_spec.rb +9 -9
  468. data/spec/unit/provider/remote_file/ftp_spec.rb +32 -32
  469. data/spec/unit/provider/remote_file/http_spec.rb +44 -44
  470. data/spec/unit/provider/remote_file/local_file_spec.rb +9 -9
  471. data/spec/unit/provider/remote_file_spec.rb +3 -3
  472. data/spec/unit/provider/route_spec.rb +63 -63
  473. data/spec/unit/provider/ruby_block_spec.rb +4 -4
  474. data/spec/unit/provider/script_spec.rb +12 -12
  475. data/spec/unit/provider/service/aix_service_spec.rb +181 -0
  476. data/spec/unit/provider/service/aixinit_service_spec.rb +269 -0
  477. data/spec/unit/provider/service/arch_service_spec.rb +48 -48
  478. data/spec/unit/provider/service/debian_service_spec.rb +40 -40
  479. data/spec/unit/provider/service/gentoo_service_spec.rb +28 -28
  480. data/spec/unit/provider/service/init_service_spec.rb +39 -39
  481. data/spec/unit/provider/service/insserv_service_spec.rb +8 -8
  482. data/spec/unit/provider/service/invokercd_service_spec.rb +35 -35
  483. data/spec/unit/provider/service/macosx_spec.rb +49 -49
  484. data/spec/unit/provider/service/redhat_spec.rb +27 -27
  485. data/spec/unit/provider/service/simple_service_spec.rb +28 -28
  486. data/spec/unit/provider/service/solaris_smf_service_spec.rb +43 -46
  487. data/spec/unit/provider/service/systemd_service_spec.rb +63 -63
  488. data/spec/unit/provider/service/upstart_service_spec.rb +78 -78
  489. data/spec/unit/provider/service/windows_spec.rb +92 -92
  490. data/spec/unit/provider/service_spec.rb +40 -40
  491. data/spec/unit/provider/subversion_spec.rb +80 -80
  492. data/spec/unit/provider/template/content_spec.rb +9 -9
  493. data/spec/unit/provider/template_spec.rb +6 -6
  494. data/spec/unit/provider/user/dscl_spec.rb +170 -167
  495. data/spec/unit/provider/user/pw_spec.rb +48 -48
  496. data/spec/unit/provider/user/solaris_spec.rb +8 -8
  497. data/spec/unit/provider/user/useradd_spec.rb +1 -1
  498. data/spec/unit/provider/user/windows_spec.rb +26 -26
  499. data/spec/unit/provider/user_spec.rb +72 -72
  500. data/spec/unit/provider/whyrun_safe_ruby_block_spec.rb +4 -4
  501. data/spec/unit/provider_resolver_spec.rb +387 -0
  502. data/spec/unit/recipe_spec.rb +33 -12
  503. data/spec/unit/resource/apt_package_spec.rb +10 -13
  504. data/spec/unit/resource/bash_spec.rb +4 -4
  505. data/spec/unit/resource/batch_spec.rb +1 -1
  506. data/spec/unit/resource/breakpoint_spec.rb +11 -7
  507. data/spec/unit/resource/chef_gem_spec.rb +8 -15
  508. data/spec/unit/resource/conditional_action_not_nothing_spec.rb +2 -2
  509. data/spec/unit/resource/conditional_spec.rb +35 -16
  510. data/spec/unit/resource/cookbook_file_spec.rb +13 -13
  511. data/spec/unit/resource/cron_spec.rb +37 -37
  512. data/spec/unit/resource/csh_spec.rb +4 -4
  513. data/spec/unit/resource/deploy_revision_spec.rb +13 -18
  514. data/spec/unit/resource/deploy_spec.rb +60 -55
  515. data/spec/unit/resource/directory_spec.rb +18 -18
  516. data/spec/unit/resource/dpkg_package_spec.rb +8 -14
  517. data/spec/unit/resource/dsc_script_spec.rb +98 -0
  518. data/spec/unit/resource/easy_install_package_spec.rb +9 -18
  519. data/spec/unit/resource/env_spec.rb +12 -12
  520. data/spec/unit/resource/erl_call_spec.rb +11 -11
  521. data/spec/unit/resource/execute_spec.rb +5 -0
  522. data/spec/unit/resource/file_spec.rb +29 -29
  523. data/spec/unit/resource/freebsd_package_spec.rb +11 -12
  524. data/spec/unit/resource/gem_package_spec.rb +8 -15
  525. data/spec/unit/resource/git_spec.rb +12 -8
  526. data/spec/unit/resource/group_spec.rb +27 -27
  527. data/spec/unit/resource/homebrew_package_spec.rb +50 -0
  528. data/spec/unit/resource/http_request_spec.rb +6 -6
  529. data/spec/unit/resource/ifconfig_spec.rb +8 -8
  530. data/spec/unit/resource/ips_package_spec.rb +10 -13
  531. data/spec/unit/resource/link_spec.rb +25 -25
  532. data/spec/unit/resource/log_spec.rb +9 -9
  533. data/spec/unit/resource/macports_package_spec.rb +8 -13
  534. data/spec/unit/resource/mdadm_spec.rb +18 -18
  535. data/spec/unit/resource/mount_spec.rb +45 -45
  536. data/spec/unit/resource/ohai_spec.rb +7 -7
  537. data/spec/unit/resource/package_spec.rb +12 -12
  538. data/spec/unit/resource/pacman_package_spec.rb +8 -14
  539. data/spec/unit/resource/perl_spec.rb +4 -4
  540. data/spec/unit/resource/portage_package_spec.rb +3 -3
  541. data/spec/unit/resource/powershell_spec.rb +7 -7
  542. data/spec/unit/resource/python_spec.rb +4 -4
  543. data/spec/unit/resource/registry_key_spec.rb +32 -32
  544. data/spec/unit/resource/remote_directory_spec.rb +17 -17
  545. data/spec/unit/resource/remote_file_spec.rb +41 -41
  546. data/spec/unit/resource/route_spec.rb +19 -19
  547. data/spec/unit/resource/rpm_package_spec.rb +9 -13
  548. data/spec/unit/resource/ruby_block_spec.rb +8 -8
  549. data/spec/unit/resource/ruby_spec.rb +4 -4
  550. data/spec/unit/resource/scm_spec.rb +40 -40
  551. data/spec/unit/resource/script_spec.rb +2 -2
  552. data/spec/unit/resource/service_spec.rb +37 -47
  553. data/spec/unit/resource/smartos_package_spec.rb +10 -15
  554. data/spec/unit/resource/solaris_package_spec.rb +13 -28
  555. data/spec/unit/resource/subversion_spec.rb +16 -12
  556. data/spec/unit/resource/template_spec.rb +35 -35
  557. data/spec/unit/resource/timestamped_deploy_spec.rb +30 -4
  558. data/spec/unit/resource/user_spec.rb +23 -23
  559. data/spec/unit/resource/windows_package_spec.rb +17 -10
  560. data/spec/unit/resource/windows_service_spec.rb +9 -6
  561. data/spec/unit/resource/yum_package_spec.rb +16 -21
  562. data/spec/unit/resource_collection/resource_list_spec.rb +137 -0
  563. data/spec/unit/resource_collection/resource_set_spec.rb +199 -0
  564. data/spec/unit/resource_collection_spec.rb +73 -92
  565. data/spec/unit/resource_definition_spec.rb +38 -40
  566. data/spec/unit/resource_reporter_spec.rb +3 -3
  567. data/spec/unit/resource_spec.rb +68 -33
  568. data/spec/unit/rest_spec.rb +83 -76
  569. data/spec/unit/role_spec.rb +5 -0
  570. data/spec/unit/run_list_spec.rb +5 -1
  571. data/spec/unit/runner_spec.rb +245 -238
  572. data/spec/unit/shell/shell_ext_spec.rb +1 -1
  573. data/spec/unit/user_spec.rb +5 -1
  574. data/spec/unit/util/dsc/configuration_generator_spec.rb +171 -0
  575. data/spec/unit/util/dsc/lcm_output_parser_spec.rb +169 -0
  576. data/spec/unit/util/dsc/local_configuration_manager_spec.rb +139 -0
  577. data/spec/unit/util/path_helper_spec.rb +23 -1
  578. data/spec/unit/util/powershell/cmdlet_spec.rb +106 -0
  579. data/spec/unit/workstation_config_loader_spec.rb +1 -1
  580. metadata +257 -191
  581. checksums.yaml +0 -7
  582. data/distro/README +0 -2
  583. data/distro/arch/etc/conf.d/chef-client.conf +0 -5
  584. data/distro/arch/etc/conf.d/chef-expander.conf +0 -8
  585. data/distro/arch/etc/conf.d/chef-server-webui.conf +0 -10
  586. data/distro/arch/etc/conf.d/chef-server.conf +0 -10
  587. data/distro/arch/etc/conf.d/chef-solr.conf +0 -8
  588. data/distro/arch/etc/rc.d/chef-client +0 -90
  589. data/distro/arch/etc/rc.d/chef-expander +0 -78
  590. data/distro/arch/etc/rc.d/chef-server +0 -78
  591. data/distro/arch/etc/rc.d/chef-server-webui +0 -78
  592. data/distro/arch/etc/rc.d/chef-solr +0 -78
  593. data/distro/debian/etc/default/chef-client +0 -4
  594. data/distro/debian/etc/default/chef-expander +0 -8
  595. data/distro/debian/etc/default/chef-server +0 -9
  596. data/distro/debian/etc/default/chef-server-webui +0 -9
  597. data/distro/debian/etc/default/chef-solr +0 -8
  598. data/distro/debian/etc/init.d/chef-client +0 -212
  599. data/distro/debian/etc/init.d/chef-expander +0 -176
  600. data/distro/debian/etc/init.d/chef-server +0 -122
  601. data/distro/debian/etc/init.d/chef-server-webui +0 -123
  602. data/distro/debian/etc/init.d/chef-solr +0 -176
  603. data/distro/debian/etc/init/chef-client.conf +0 -17
  604. data/distro/debian/etc/init/chef-expander.conf +0 -17
  605. data/distro/debian/etc/init/chef-server-webui.conf +0 -17
  606. data/distro/debian/etc/init/chef-server.conf +0 -17
  607. data/distro/debian/etc/init/chef-solr.conf +0 -17
  608. data/distro/redhat/etc/init.d/chef-client +0 -121
  609. data/distro/redhat/etc/init.d/chef-expander +0 -104
  610. data/distro/redhat/etc/init.d/chef-server +0 -112
  611. data/distro/redhat/etc/init.d/chef-server-webui +0 -112
  612. data/distro/redhat/etc/init.d/chef-solr +0 -104
  613. data/distro/redhat/etc/logrotate.d/chef-client +0 -8
  614. data/distro/redhat/etc/logrotate.d/chef-expander +0 -8
  615. data/distro/redhat/etc/logrotate.d/chef-server +0 -8
  616. data/distro/redhat/etc/logrotate.d/chef-server-webui +0 -8
  617. data/distro/redhat/etc/logrotate.d/chef-solr +0 -8
  618. data/distro/redhat/etc/sysconfig/chef-client +0 -15
  619. data/distro/redhat/etc/sysconfig/chef-expander +0 -7
  620. data/distro/redhat/etc/sysconfig/chef-server +0 -14
  621. data/distro/redhat/etc/sysconfig/chef-server-webui +0 -14
  622. data/distro/redhat/etc/sysconfig/chef-solr +0 -8
  623. data/distro/windows/service_manager.rb +0 -20
  624. data/lib/chef/resource_platform_map.rb +0 -151
  625. data/spec/support/shared/matchers.rb +0 -17
  626. data/spec/unit/resource_platform_map_spec.rb +0 -164
@@ -214,6 +214,28 @@ describe Chef::Util::PathHelper do
214
214
  PathHelper.stub(:canonical_path).with("bandit").and_return("c:/Bo/Bandit")
215
215
  PathHelper.stub(:canonical_path).with("../bandit/bandit").and_return("c:/bandit/bandit")
216
216
  expect(PathHelper.paths_eql?("bandit", "../bandit/bandit")).to be_false
217
- end
217
+ end
218
+ end
219
+
220
+ describe "escape_glob" do
221
+ it "escapes characters reserved by glob" do
222
+ path = "C:\\this\\*path\\[needs]\\escaping?"
223
+ escaped_path = "C:\\\\this\\\\\\*path\\\\\\[needs\\]\\\\escaping\\?"
224
+ expect(PathHelper.escape_glob(path)).to eq(escaped_path)
225
+ end
226
+
227
+ context "when given more than one argument" do
228
+ it "joins, cleanpaths, and escapes characters reserved by glob" do
229
+ args = ["this/*path", "[needs]", "escaping?"]
230
+ escaped_path = if windows?
231
+ "this\\\\\\*path\\\\\\[needs\\]\\\\escaping\\?"
232
+ else
233
+ "this/\\*path/\\[needs\\]/escaping\\?"
234
+ end
235
+ expect(PathHelper).to receive(:join).with(*args).and_call_original
236
+ expect(PathHelper).to receive(:cleanpath).and_call_original
237
+ expect(PathHelper.escape_glob(*args)).to eq(escaped_path)
238
+ end
239
+ end
218
240
  end
219
241
  end
@@ -0,0 +1,106 @@
1
+ #
2
+ # Author:: Jay Mundrawala <jdm@getchef.com>
3
+ # Copyright:: Copyright (c) 2014 Chef Software, 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
+ require 'chef'
20
+ require 'chef/util/powershell/cmdlet'
21
+
22
+ describe Chef::Util::Powershell::Cmdlet do
23
+ before (:all) do
24
+ @node = Chef::Node.new
25
+ @cmdlet = Chef::Util::Powershell::Cmdlet.new(@node, 'Some-Commandlet')
26
+ end
27
+
28
+ describe '#validate_switch_name!' do
29
+ it 'should not raise an error if a name contains all upper case letters' do
30
+ @cmdlet.send(:validate_switch_name!, "HELLO")
31
+ end
32
+
33
+ it 'should not raise an error if the name contains all lower case letters' do
34
+ @cmdlet.send(:validate_switch_name!, "hello")
35
+ end
36
+
37
+ it 'should not raise an error if no special characters are used except _' do
38
+ @cmdlet.send(:validate_switch_name!, "hello_world")
39
+ end
40
+
41
+ %w{! @ # $ % ^ & * & * ( ) - = + \{ \} . ? < > \\ /}.each do |sym|
42
+ it "raises an Argument error if it configuration name contains #{sym}" do
43
+ expect {
44
+ @cmdlet.send(:validate_switch_name!, "Hello#{sym}")
45
+ }.to raise_error(ArgumentError)
46
+ end
47
+ end
48
+ end
49
+
50
+ describe '#escape_parameter_value' do
51
+ # Is this list really complete?
52
+ %w{` " # '}.each do |c|
53
+ it "escapse #{c}" do
54
+ @cmdlet.send(:escape_parameter_value, "stuff #{c}").should eql("stuff `#{c}")
55
+ end
56
+ end
57
+
58
+ it 'does not do anything to a string without special characters' do
59
+ @cmdlet.send(:escape_parameter_value, 'stuff').should eql('stuff')
60
+ end
61
+ end
62
+
63
+ describe '#escape_string_parameter_value' do
64
+ it "surrounds a string with ''" do
65
+ @cmdlet.send(:escape_string_parameter_value, 'stuff').should eql("'stuff'")
66
+ end
67
+ end
68
+
69
+ describe '#command_switches_string' do
70
+ it 'raises an ArgumentError if the key is not a symbol' do
71
+ expect {
72
+ @cmdlet.send(:command_switches_string, {'foo' => 'bar'})
73
+ }.to raise_error(ArgumentError)
74
+ end
75
+
76
+ it 'does not allow invalid switch names' do
77
+ expect {
78
+ @cmdlet.send(:command_switches_string, {:foo! => 'bar'})
79
+ }.to raise_error(ArgumentError)
80
+ end
81
+
82
+ it 'ignores switches with a false value' do
83
+ @cmdlet.send(:command_switches_string, {foo: false}).should eql('')
84
+ end
85
+
86
+ it 'should correctly handle a value type of string' do
87
+ @cmdlet.send(:command_switches_string, {foo: 'bar'}).should eql("-foo 'bar'")
88
+ end
89
+
90
+ it 'should correctly handle a value type of string even when it is 0 length' do
91
+ @cmdlet.send(:command_switches_string, {foo: ''}).should eql("-foo ''")
92
+ end
93
+
94
+ it 'should not quote integers' do
95
+ @cmdlet.send(:command_switches_string, {foo: 1}).should eql("-foo 1")
96
+ end
97
+
98
+ it 'should not quote floats' do
99
+ @cmdlet.send(:command_switches_string, {foo: 1.0}).should eql("-foo 1.0")
100
+ end
101
+
102
+ it 'has just the switch when the value is true' do
103
+ @cmdlet.send(:command_switches_string, {foo: true}).should eql("-foo")
104
+ end
105
+ end
106
+ end
@@ -241,7 +241,7 @@ describe Chef::WorkstationConfigLoader do
241
241
  t.path
242
242
  end
243
243
 
244
- after { File.unlink(explicit_config_location) }
244
+ after { File.unlink(explicit_config_location) if File.exists?(explicit_config_location) }
245
245
 
246
246
  context "and is valid" do
247
247
 
metadata CHANGED
@@ -1,331 +1,368 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.0.0.alpha.2
4
+ version: 12.0.0.rc.0
5
+ prerelease: 7
5
6
  platform: ruby
6
7
  authors:
7
8
  - Adam Jacob
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-09-15 00:00:00.000000000 Z
12
+ date: 2014-11-04 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: mixlib-config
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - "~>"
19
+ - - ~>
18
20
  - !ruby/object:Gem::Version
19
21
  version: '2.0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - "~>"
27
+ - - ~>
25
28
  - !ruby/object:Gem::Version
26
29
  version: '2.0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: mixlib-cli
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - "~>"
35
+ - - ~>
32
36
  - !ruby/object:Gem::Version
33
37
  version: '1.4'
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - "~>"
43
+ - - ~>
39
44
  - !ruby/object:Gem::Version
40
45
  version: '1.4'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: mixlib-log
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - "~>"
51
+ - - ~>
46
52
  - !ruby/object:Gem::Version
47
53
  version: '1.3'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - "~>"
59
+ - - ~>
53
60
  - !ruby/object:Gem::Version
54
61
  version: '1.3'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: mixlib-authentication
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - "~>"
67
+ - - ~>
60
68
  - !ruby/object:Gem::Version
61
69
  version: '1.3'
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - "~>"
75
+ - - ~>
67
76
  - !ruby/object:Gem::Version
68
77
  version: '1.3'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: mixlib-shellout
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - ">="
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
- version: 2.0.0.rc.0
76
- - - "<"
85
+ version: 2.0.0.rc.1
86
+ - - <
77
87
  - !ruby/object:Gem::Version
78
88
  version: '3.0'
79
89
  type: :runtime
80
90
  prerelease: false
81
91
  version_requirements: !ruby/object:Gem::Requirement
92
+ none: false
82
93
  requirements:
83
- - - ">="
94
+ - - ! '>='
84
95
  - !ruby/object:Gem::Version
85
- version: 2.0.0.rc.0
86
- - - "<"
96
+ version: 2.0.0.rc.1
97
+ - - <
87
98
  - !ruby/object:Gem::Version
88
99
  version: '3.0'
89
100
  - !ruby/object:Gem::Dependency
90
101
  name: ohai
91
102
  requirement: !ruby/object:Gem::Requirement
103
+ none: false
92
104
  requirements:
93
- - - ">="
105
+ - - ! '>='
94
106
  - !ruby/object:Gem::Version
95
- version: 7.6.0.rc.0
107
+ version: 7.6.0.rc.1
96
108
  type: :runtime
97
109
  prerelease: false
98
110
  version_requirements: !ruby/object:Gem::Requirement
111
+ none: false
99
112
  requirements:
100
- - - ">="
113
+ - - ! '>='
101
114
  - !ruby/object:Gem::Version
102
- version: 7.6.0.rc.0
115
+ version: 7.6.0.rc.1
103
116
  - !ruby/object:Gem::Dependency
104
117
  name: ffi-yajl
105
118
  requirement: !ruby/object:Gem::Requirement
119
+ none: false
106
120
  requirements:
107
- - - "~>"
121
+ - - ~>
108
122
  - !ruby/object:Gem::Version
109
- version: '1.0'
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: 1.0.2
123
+ version: '1.2'
113
124
  type: :runtime
114
125
  prerelease: false
115
126
  version_requirements: !ruby/object:Gem::Requirement
127
+ none: false
116
128
  requirements:
117
- - - "~>"
118
- - !ruby/object:Gem::Version
119
- version: '1.0'
120
- - - ">="
129
+ - - ~>
121
130
  - !ruby/object:Gem::Version
122
- version: 1.0.2
131
+ version: '1.2'
123
132
  - !ruby/object:Gem::Dependency
124
133
  name: net-ssh
125
134
  requirement: !ruby/object:Gem::Requirement
135
+ none: false
126
136
  requirements:
127
- - - "~>"
137
+ - - ~>
128
138
  - !ruby/object:Gem::Version
129
139
  version: '2.6'
130
140
  type: :runtime
131
141
  prerelease: false
132
142
  version_requirements: !ruby/object:Gem::Requirement
143
+ none: false
133
144
  requirements:
134
- - - "~>"
145
+ - - ~>
135
146
  - !ruby/object:Gem::Version
136
147
  version: '2.6'
137
148
  - !ruby/object:Gem::Dependency
138
149
  name: net-ssh-multi
139
150
  requirement: !ruby/object:Gem::Requirement
151
+ none: false
140
152
  requirements:
141
- - - "~>"
153
+ - - ~>
142
154
  - !ruby/object:Gem::Version
143
155
  version: '1.1'
144
156
  type: :runtime
145
157
  prerelease: false
146
158
  version_requirements: !ruby/object:Gem::Requirement
159
+ none: false
147
160
  requirements:
148
- - - "~>"
161
+ - - ~>
149
162
  - !ruby/object:Gem::Version
150
163
  version: '1.1'
151
164
  - !ruby/object:Gem::Dependency
152
165
  name: highline
153
166
  requirement: !ruby/object:Gem::Requirement
167
+ none: false
154
168
  requirements:
155
- - - "~>"
169
+ - - ~>
156
170
  - !ruby/object:Gem::Version
157
171
  version: '1.6'
158
- - - ">="
172
+ - - ! '>='
159
173
  - !ruby/object:Gem::Version
160
174
  version: 1.6.9
161
175
  type: :runtime
162
176
  prerelease: false
163
177
  version_requirements: !ruby/object:Gem::Requirement
178
+ none: false
164
179
  requirements:
165
- - - "~>"
180
+ - - ~>
166
181
  - !ruby/object:Gem::Version
167
182
  version: '1.6'
168
- - - ">="
183
+ - - ! '>='
169
184
  - !ruby/object:Gem::Version
170
185
  version: 1.6.9
171
186
  - !ruby/object:Gem::Dependency
172
187
  name: erubis
173
188
  requirement: !ruby/object:Gem::Requirement
189
+ none: false
174
190
  requirements:
175
- - - "~>"
191
+ - - ~>
176
192
  - !ruby/object:Gem::Version
177
193
  version: '2.7'
178
194
  type: :runtime
179
195
  prerelease: false
180
196
  version_requirements: !ruby/object:Gem::Requirement
197
+ none: false
181
198
  requirements:
182
- - - "~>"
199
+ - - ~>
183
200
  - !ruby/object:Gem::Version
184
201
  version: '2.7'
185
202
  - !ruby/object:Gem::Dependency
186
203
  name: diff-lcs
187
204
  requirement: !ruby/object:Gem::Requirement
205
+ none: false
188
206
  requirements:
189
- - - "~>"
207
+ - - ~>
190
208
  - !ruby/object:Gem::Version
191
209
  version: '1.2'
192
- - - ">="
210
+ - - ! '>='
193
211
  - !ruby/object:Gem::Version
194
212
  version: 1.2.4
195
213
  type: :runtime
196
214
  prerelease: false
197
215
  version_requirements: !ruby/object:Gem::Requirement
216
+ none: false
198
217
  requirements:
199
- - - "~>"
218
+ - - ~>
200
219
  - !ruby/object:Gem::Version
201
220
  version: '1.2'
202
- - - ">="
221
+ - - ! '>='
203
222
  - !ruby/object:Gem::Version
204
223
  version: 1.2.4
205
224
  - !ruby/object:Gem::Dependency
206
225
  name: chef-zero
207
226
  requirement: !ruby/object:Gem::Requirement
227
+ none: false
208
228
  requirements:
209
- - - "~>"
229
+ - - ~>
210
230
  - !ruby/object:Gem::Version
211
- version: '3.1'
231
+ version: '3.2'
212
232
  type: :runtime
213
233
  prerelease: false
214
234
  version_requirements: !ruby/object:Gem::Requirement
235
+ none: false
215
236
  requirements:
216
- - - "~>"
237
+ - - ~>
217
238
  - !ruby/object:Gem::Version
218
- version: '3.1'
239
+ version: '3.2'
219
240
  - !ruby/object:Gem::Dependency
220
241
  name: pry
221
242
  requirement: !ruby/object:Gem::Requirement
243
+ none: false
222
244
  requirements:
223
- - - "~>"
245
+ - - ~>
224
246
  - !ruby/object:Gem::Version
225
247
  version: '0.9'
226
248
  type: :runtime
227
249
  prerelease: false
228
250
  version_requirements: !ruby/object:Gem::Requirement
251
+ none: false
229
252
  requirements:
230
- - - "~>"
253
+ - - ~>
231
254
  - !ruby/object:Gem::Version
232
255
  version: '0.9'
233
256
  - !ruby/object:Gem::Dependency
234
257
  name: plist
235
258
  requirement: !ruby/object:Gem::Requirement
259
+ none: false
236
260
  requirements:
237
- - - "~>"
261
+ - - ~>
238
262
  - !ruby/object:Gem::Version
239
263
  version: 3.1.0
240
264
  type: :runtime
241
265
  prerelease: false
242
266
  version_requirements: !ruby/object:Gem::Requirement
267
+ none: false
243
268
  requirements:
244
- - - "~>"
269
+ - - ~>
245
270
  - !ruby/object:Gem::Version
246
271
  version: 3.1.0
247
272
  - !ruby/object:Gem::Dependency
248
273
  name: rack
249
274
  requirement: !ruby/object:Gem::Requirement
275
+ none: false
250
276
  requirements:
251
- - - ">="
277
+ - - ! '>='
252
278
  - !ruby/object:Gem::Version
253
279
  version: '0'
254
280
  type: :development
255
281
  prerelease: false
256
282
  version_requirements: !ruby/object:Gem::Requirement
283
+ none: false
257
284
  requirements:
258
- - - ">="
285
+ - - ! '>='
259
286
  - !ruby/object:Gem::Version
260
287
  version: '0'
261
288
  - !ruby/object:Gem::Dependency
262
289
  name: rake
263
290
  requirement: !ruby/object:Gem::Requirement
291
+ none: false
264
292
  requirements:
265
- - - "~>"
293
+ - - ~>
266
294
  - !ruby/object:Gem::Version
267
295
  version: 10.1.0
268
296
  type: :development
269
297
  prerelease: false
270
298
  version_requirements: !ruby/object:Gem::Requirement
299
+ none: false
271
300
  requirements:
272
- - - "~>"
301
+ - - ~>
273
302
  - !ruby/object:Gem::Version
274
303
  version: 10.1.0
275
304
  - !ruby/object:Gem::Dependency
276
305
  name: rspec_junit_formatter
277
306
  requirement: !ruby/object:Gem::Requirement
307
+ none: false
278
308
  requirements:
279
- - - "~>"
309
+ - - ~>
280
310
  - !ruby/object:Gem::Version
281
311
  version: 0.1.0
282
312
  type: :development
283
313
  prerelease: false
284
314
  version_requirements: !ruby/object:Gem::Requirement
315
+ none: false
285
316
  requirements:
286
- - - "~>"
317
+ - - ~>
287
318
  - !ruby/object:Gem::Version
288
319
  version: 0.1.0
289
320
  - !ruby/object:Gem::Dependency
290
321
  name: rspec-core
291
322
  requirement: !ruby/object:Gem::Requirement
323
+ none: false
292
324
  requirements:
293
- - - "~>"
325
+ - - ~>
294
326
  - !ruby/object:Gem::Version
295
327
  version: 2.14.0
296
328
  type: :development
297
329
  prerelease: false
298
330
  version_requirements: !ruby/object:Gem::Requirement
331
+ none: false
299
332
  requirements:
300
- - - "~>"
333
+ - - ~>
301
334
  - !ruby/object:Gem::Version
302
335
  version: 2.14.0
303
336
  - !ruby/object:Gem::Dependency
304
337
  name: rspec-expectations
305
338
  requirement: !ruby/object:Gem::Requirement
339
+ none: false
306
340
  requirements:
307
- - - "~>"
341
+ - - ~>
308
342
  - !ruby/object:Gem::Version
309
343
  version: 2.14.0
310
344
  type: :development
311
345
  prerelease: false
312
346
  version_requirements: !ruby/object:Gem::Requirement
347
+ none: false
313
348
  requirements:
314
- - - "~>"
349
+ - - ~>
315
350
  - !ruby/object:Gem::Version
316
351
  version: 2.14.0
317
352
  - !ruby/object:Gem::Dependency
318
353
  name: rspec-mocks
319
354
  requirement: !ruby/object:Gem::Requirement
355
+ none: false
320
356
  requirements:
321
- - - "~>"
357
+ - - ~>
322
358
  - !ruby/object:Gem::Version
323
359
  version: 2.14.0
324
360
  type: :development
325
361
  prerelease: false
326
362
  version_requirements: !ruby/object:Gem::Requirement
363
+ none: false
327
364
  requirements:
328
- - - "~>"
365
+ - - ~>
329
366
  - !ruby/object:Gem::Version
330
367
  version: 2.14.0
331
368
  description: A systems integration framework, built to bring the benefits of configuration
@@ -339,34 +376,17 @@ executables:
339
376
  - shef
340
377
  - chef-apply
341
378
  - chef-service-manager
379
+ - chef-windows-service
342
380
  extensions: []
343
381
  extra_rdoc_files:
344
382
  - README.md
345
383
  - CONTRIBUTING.md
346
384
  - LICENSE
347
385
  files:
348
- - CONTRIBUTING.md
386
+ - Rakefile
349
387
  - LICENSE
350
388
  - README.md
351
- - Rakefile
352
- - bin/chef-apply
353
- - bin/chef-client
354
- - bin/chef-service-manager
355
- - bin/chef-shell
356
- - bin/chef-solo
357
- - bin/knife
358
- - bin/shef
359
- - distro/README
360
- - distro/arch/etc/conf.d/chef-client.conf
361
- - distro/arch/etc/conf.d/chef-expander.conf
362
- - distro/arch/etc/conf.d/chef-server-webui.conf
363
- - distro/arch/etc/conf.d/chef-server.conf
364
- - distro/arch/etc/conf.d/chef-solr.conf
365
- - distro/arch/etc/rc.d/chef-client
366
- - distro/arch/etc/rc.d/chef-expander
367
- - distro/arch/etc/rc.d/chef-server
368
- - distro/arch/etc/rc.d/chef-server-webui
369
- - distro/arch/etc/rc.d/chef-solr
389
+ - CONTRIBUTING.md
370
390
  - distro/common/html/_sources/ctl_chef_client.txt
371
391
  - distro/common/html/_sources/ctl_chef_server.txt
372
392
  - distro/common/html/_sources/ctl_chef_shell.txt
@@ -469,7 +489,6 @@ files:
469
489
  - distro/common/html/objects.inv
470
490
  - distro/common/html/search.html
471
491
  - distro/common/html/searchindex.js
472
- - distro/common/man/man1/README.md
473
492
  - distro/common/man/man1/chef-shell.1
474
493
  - distro/common/man/man1/knife-bootstrap.1
475
494
  - distro/common/man/man1/knife-client.1
@@ -502,9 +521,9 @@ files:
502
521
  - distro/common/man/man1/knife-user.1
503
522
  - distro/common/man/man1/knife-xargs.1
504
523
  - distro/common/man/man1/knife.1
524
+ - distro/common/man/man1/README.md
505
525
  - distro/common/man/man8/chef-client.8
506
526
  - distro/common/man/man8/chef-solo.8
507
- - distro/common/markdown/README
508
527
  - distro/common/markdown/man1/chef-shell.mkd
509
528
  - distro/common/markdown/man1/knife-bootstrap.mkd
510
529
  - distro/common/markdown/man1/knife-client.mkd
@@ -529,41 +548,9 @@ files:
529
548
  - distro/common/markdown/man8/chef-server.mkd
530
549
  - distro/common/markdown/man8/chef-solo.mkd
531
550
  - distro/common/markdown/man8/chef-solr.mkd
532
- - distro/debian/etc/default/chef-client
533
- - distro/debian/etc/default/chef-expander
534
- - distro/debian/etc/default/chef-server
535
- - distro/debian/etc/default/chef-server-webui
536
- - distro/debian/etc/default/chef-solr
537
- - distro/debian/etc/init.d/chef-client
538
- - distro/debian/etc/init.d/chef-expander
539
- - distro/debian/etc/init.d/chef-server
540
- - distro/debian/etc/init.d/chef-server-webui
541
- - distro/debian/etc/init.d/chef-solr
542
- - distro/debian/etc/init/chef-client.conf
543
- - distro/debian/etc/init/chef-expander.conf
544
- - distro/debian/etc/init/chef-server-webui.conf
545
- - distro/debian/etc/init/chef-server.conf
546
- - distro/debian/etc/init/chef-solr.conf
547
- - distro/redhat/etc/init.d/chef-client
548
- - distro/redhat/etc/init.d/chef-expander
549
- - distro/redhat/etc/init.d/chef-server
550
- - distro/redhat/etc/init.d/chef-server-webui
551
- - distro/redhat/etc/init.d/chef-solr
552
- - distro/redhat/etc/logrotate.d/chef-client
553
- - distro/redhat/etc/logrotate.d/chef-expander
554
- - distro/redhat/etc/logrotate.d/chef-server
555
- - distro/redhat/etc/logrotate.d/chef-server-webui
556
- - distro/redhat/etc/logrotate.d/chef-solr
557
- - distro/redhat/etc/sysconfig/chef-client
558
- - distro/redhat/etc/sysconfig/chef-expander
559
- - distro/redhat/etc/sysconfig/chef-server
560
- - distro/redhat/etc/sysconfig/chef-server-webui
561
- - distro/redhat/etc/sysconfig/chef-solr
562
- - distro/windows/service_manager.rb
563
- - lib/chef.rb
564
- - lib/chef/api_client.rb
551
+ - distro/common/markdown/README
565
552
  - lib/chef/api_client/registration.rb
566
- - lib/chef/application.rb
553
+ - lib/chef/api_client.rb
567
554
  - lib/chef/application/agent.rb
568
555
  - lib/chef/application/apply.rb
569
556
  - lib/chef/application/client.rb
@@ -571,8 +558,8 @@ files:
571
558
  - lib/chef/application/solo.rb
572
559
  - lib/chef/application/windows_service.rb
573
560
  - lib/chef/application/windows_service_manager.rb
561
+ - lib/chef/application.rb
574
562
  - lib/chef/applications.rb
575
- - lib/chef/chef_fs.rb
576
563
  - lib/chef/chef_fs/chef_fs_data_store.rb
577
564
  - lib/chef/chef_fs/command_line.rb
578
565
  - lib/chef/chef_fs/config.rb
@@ -591,7 +578,6 @@ files:
591
578
  - lib/chef/chef_fs/data_handler/role_data_handler.rb
592
579
  - lib/chef/chef_fs/data_handler/user_data_handler.rb
593
580
  - lib/chef/chef_fs/file_pattern.rb
594
- - lib/chef/chef_fs/file_system.rb
595
581
  - lib/chef/chef_fs/file_system/acl_dir.rb
596
582
  - lib/chef/chef_fs/file_system/acl_entry.rb
597
583
  - lib/chef/chef_fs/file_system/acls_dir.rb
@@ -634,11 +620,13 @@ files:
634
620
  - lib/chef/chef_fs/file_system/organization_members_entry.rb
635
621
  - lib/chef/chef_fs/file_system/rest_list_dir.rb
636
622
  - lib/chef/chef_fs/file_system/rest_list_entry.rb
623
+ - lib/chef/chef_fs/file_system.rb
637
624
  - lib/chef/chef_fs/knife.rb
638
- - lib/chef/chef_fs/parallelizer.rb
639
625
  - lib/chef/chef_fs/parallelizer/flatten_enumerable.rb
640
626
  - lib/chef/chef_fs/parallelizer/parallel_enumerable.rb
627
+ - lib/chef/chef_fs/parallelizer.rb
641
628
  - lib/chef/chef_fs/path_utils.rb
629
+ - lib/chef/chef_fs.rb
642
630
  - lib/chef/client.rb
643
631
  - lib/chef/config.rb
644
632
  - lib/chef/config_fetcher.rb
@@ -665,7 +653,6 @@ files:
665
653
  - lib/chef/deprecation/provider/template.rb
666
654
  - lib/chef/deprecation/warnings.rb
667
655
  - lib/chef/digester.rb
668
- - lib/chef/dsl.rb
669
656
  - lib/chef/dsl/data_query.rb
670
657
  - lib/chef/dsl/include_attribute.rb
671
658
  - lib/chef/dsl/include_recipe.rb
@@ -673,8 +660,9 @@ files:
673
660
  - lib/chef/dsl/reboot_pending.rb
674
661
  - lib/chef/dsl/recipe.rb
675
662
  - lib/chef/dsl/registry_helper.rb
676
- - lib/chef/encrypted_data_bag_item.rb
663
+ - lib/chef/dsl.rb
677
664
  - lib/chef/encrypted_data_bag_item/assertions.rb
665
+ - lib/chef/encrypted_data_bag_item/check_encrypted.rb
678
666
  - lib/chef/encrypted_data_bag_item/decryption_failure.rb
679
667
  - lib/chef/encrypted_data_bag_item/decryptor.rb
680
668
  - lib/chef/encrypted_data_bag_item/encrypted_data_bag_item_assertions.rb
@@ -683,25 +671,27 @@ files:
683
671
  - lib/chef/encrypted_data_bag_item/unacceptable_encrypted_data_bag_item_format.rb
684
672
  - lib/chef/encrypted_data_bag_item/unsupported_cipher.rb
685
673
  - lib/chef/encrypted_data_bag_item/unsupported_encrypted_data_bag_item_format.rb
674
+ - lib/chef/encrypted_data_bag_item.rb
686
675
  - lib/chef/environment.rb
687
676
  - lib/chef/event_dispatch/base.rb
688
677
  - lib/chef/event_dispatch/dispatcher.rb
689
678
  - lib/chef/event_dispatch/events_output_stream.rb
679
+ - lib/chef/event_loggers/base.rb
680
+ - lib/chef/event_loggers/windows_eventlog.rb
690
681
  - lib/chef/exceptions.rb
691
- - lib/chef/file_access_control.rb
692
682
  - lib/chef/file_access_control/unix.rb
693
683
  - lib/chef/file_access_control/windows.rb
684
+ - lib/chef/file_access_control.rb
694
685
  - lib/chef/file_cache.rb
695
686
  - lib/chef/file_content_management/content_base.rb
696
- - lib/chef/file_content_management/deploy.rb
697
687
  - lib/chef/file_content_management/deploy/cp.rb
698
688
  - lib/chef/file_content_management/deploy/mv_unix.rb
699
689
  - lib/chef/file_content_management/deploy/mv_windows.rb
690
+ - lib/chef/file_content_management/deploy.rb
700
691
  - lib/chef/file_content_management/tempfile.rb
701
692
  - lib/chef/formatters/base.rb
702
693
  - lib/chef/formatters/doc.rb
703
694
  - lib/chef/formatters/error_descriptor.rb
704
- - lib/chef/formatters/error_inspectors.rb
705
695
  - lib/chef/formatters/error_inspectors/api_error_formatting.rb
706
696
  - lib/chef/formatters/error_inspectors/compile_error_inspector.rb
707
697
  - lib/chef/formatters/error_inspectors/cookbook_resolve_error_inspector.rb
@@ -710,15 +700,15 @@ files:
710
700
  - lib/chef/formatters/error_inspectors/registration_error_inspector.rb
711
701
  - lib/chef/formatters/error_inspectors/resource_failure_inspector.rb
712
702
  - lib/chef/formatters/error_inspectors/run_list_expansion_error_inspector.rb
703
+ - lib/chef/formatters/error_inspectors.rb
713
704
  - lib/chef/formatters/error_mapper.rb
714
705
  - lib/chef/formatters/indentable_output_stream.rb
715
706
  - lib/chef/formatters/minimal.rb
716
707
  - lib/chef/guard_interpreter/default_guard_interpreter.rb
717
708
  - lib/chef/guard_interpreter/resource_guard_interpreter.rb
718
- - lib/chef/handler.rb
719
709
  - lib/chef/handler/error_report.rb
720
710
  - lib/chef/handler/json_file.rb
721
- - lib/chef/http.rb
711
+ - lib/chef/handler.rb
722
712
  - lib/chef/http/auth_credentials.rb
723
713
  - lib/chef/http/authenticator.rb
724
714
  - lib/chef/http/basic_client.rb
@@ -733,13 +723,13 @@ files:
733
723
  - lib/chef/http/simple.rb
734
724
  - lib/chef/http/ssl_policies.rb
735
725
  - lib/chef/http/validate_content_length.rb
726
+ - lib/chef/http.rb
736
727
  - lib/chef/json_compat.rb
737
- - lib/chef/knife.rb
738
- - lib/chef/knife/bootstrap.rb
739
- - lib/chef/knife/bootstrap/README.md
740
728
  - lib/chef/knife/bootstrap/archlinux-gems.erb
741
729
  - lib/chef/knife/bootstrap/chef-aix.erb
742
730
  - lib/chef/knife/bootstrap/chef-full.erb
731
+ - lib/chef/knife/bootstrap/README.md
732
+ - lib/chef/knife/bootstrap.rb
743
733
  - lib/chef/knife/client_bulk_delete.rb
744
734
  - lib/chef/knife/client_create.rb
745
735
  - lib/chef/knife/client_delete.rb
@@ -773,6 +763,7 @@ files:
773
763
  - lib/chef/knife/core/node_editor.rb
774
764
  - lib/chef/knife/core/node_presenter.rb
775
765
  - lib/chef/knife/core/object_loader.rb
766
+ - lib/chef/knife/core/status_presenter.rb
776
767
  - lib/chef/knife/core/subcommand_loader.rb
777
768
  - lib/chef/knife/core/text_formatter.rb
778
769
  - lib/chef/knife/core/ui.rb
@@ -781,6 +772,7 @@ files:
781
772
  - lib/chef/knife/data_bag_edit.rb
782
773
  - lib/chef/knife/data_bag_from_file.rb
783
774
  - lib/chef/knife/data_bag_list.rb
775
+ - lib/chef/knife/data_bag_secret_options.rb
784
776
  - lib/chef/knife/data_bag_show.rb
785
777
  - lib/chef/knife/delete.rb
786
778
  - lib/chef/knife/deps.rb
@@ -837,21 +829,24 @@ files:
837
829
  - lib/chef/knife/user_reregister.rb
838
830
  - lib/chef/knife/user_show.rb
839
831
  - lib/chef/knife/xargs.rb
832
+ - lib/chef/knife.rb
840
833
  - lib/chef/local_mode.rb
841
834
  - lib/chef/log.rb
842
835
  - lib/chef/mash.rb
843
836
  - lib/chef/mixin/checksum.rb
844
- - lib/chef/mixin/command.rb
845
837
  - lib/chef/mixin/command/unix.rb
846
838
  - lib/chef/mixin/command/windows.rb
839
+ - lib/chef/mixin/command.rb
847
840
  - lib/chef/mixin/convert_to_class_name.rb
848
841
  - lib/chef/mixin/create_path.rb
849
842
  - lib/chef/mixin/deep_merge.rb
850
843
  - lib/chef/mixin/deprecation.rb
844
+ - lib/chef/mixin/descendants_tracker.rb
851
845
  - lib/chef/mixin/enforce_ownership_and_permissions.rb
852
846
  - lib/chef/mixin/file_class.rb
853
847
  - lib/chef/mixin/from_file.rb
854
848
  - lib/chef/mixin/get_source_from_package.rb
849
+ - lib/chef/mixin/homebrew_user.rb
855
850
  - lib/chef/mixin/language.rb
856
851
  - lib/chef/mixin/language_include_attribute.rb
857
852
  - lib/chef/mixin/language_include_recipe.rb
@@ -863,6 +858,7 @@ files:
863
858
  - lib/chef/mixin/template.rb
864
859
  - lib/chef/mixin/why_run.rb
865
860
  - lib/chef/mixin/windows_architecture_helper.rb
861
+ - lib/chef/mixin/windows_env_helper.rb
866
862
  - lib/chef/mixin/xml_escape.rb
867
863
  - lib/chef/mixins.rb
868
864
  - lib/chef/monkey_patches/file.rb
@@ -879,39 +875,41 @@ files:
879
875
  - lib/chef/monkey_patches/uri.rb
880
876
  - lib/chef/monologger.rb
881
877
  - lib/chef/nil_argument.rb
882
- - lib/chef/node.rb
883
878
  - lib/chef/node/attribute.rb
884
879
  - lib/chef/node/attribute_collections.rb
885
880
  - lib/chef/node/immutable_collections.rb
881
+ - lib/chef/node.rb
882
+ - lib/chef/node_map.rb
886
883
  - lib/chef/null_logger.rb
887
- - lib/chef/platform.rb
888
884
  - lib/chef/platform/provider_mapping.rb
885
+ - lib/chef/platform/provider_priority_map.rb
889
886
  - lib/chef/platform/query_helpers.rb
890
887
  - lib/chef/platform/rebooter.rb
891
- - lib/chef/policy_builder.rb
888
+ - lib/chef/platform/service_helpers.rb
889
+ - lib/chef/platform.rb
892
890
  - lib/chef/policy_builder/expand_node_object.rb
893
891
  - lib/chef/policy_builder/policyfile.rb
894
- - lib/chef/provider.rb
892
+ - lib/chef/policy_builder.rb
895
893
  - lib/chef/provider/batch.rb
896
894
  - lib/chef/provider/breakpoint.rb
897
- - lib/chef/provider/cookbook_file.rb
898
895
  - lib/chef/provider/cookbook_file/content.rb
899
- - lib/chef/provider/cron.rb
896
+ - lib/chef/provider/cookbook_file.rb
900
897
  - lib/chef/provider/cron/aix.rb
901
898
  - lib/chef/provider/cron/solaris.rb
902
899
  - lib/chef/provider/cron/unix.rb
903
- - lib/chef/provider/deploy.rb
900
+ - lib/chef/provider/cron.rb
904
901
  - lib/chef/provider/deploy/revision.rb
905
902
  - lib/chef/provider/deploy/timestamped.rb
903
+ - lib/chef/provider/deploy.rb
906
904
  - lib/chef/provider/directory.rb
907
- - lib/chef/provider/env.rb
905
+ - lib/chef/provider/dsc_script.rb
908
906
  - lib/chef/provider/env/windows.rb
907
+ - lib/chef/provider/env.rb
909
908
  - lib/chef/provider/erl_call.rb
910
909
  - lib/chef/provider/execute.rb
911
- - lib/chef/provider/file.rb
912
910
  - lib/chef/provider/file/content.rb
911
+ - lib/chef/provider/file.rb
913
912
  - lib/chef/provider/git.rb
914
- - lib/chef/provider/group.rb
915
913
  - lib/chef/provider/group/aix.rb
916
914
  - lib/chef/provider/group/dscl.rb
917
915
  - lib/chef/provider/group/gpasswd.rb
@@ -921,22 +919,22 @@ files:
921
919
  - lib/chef/provider/group/suse.rb
922
920
  - lib/chef/provider/group/usermod.rb
923
921
  - lib/chef/provider/group/windows.rb
922
+ - lib/chef/provider/group.rb
924
923
  - lib/chef/provider/http_request.rb
925
- - lib/chef/provider/ifconfig.rb
926
924
  - lib/chef/provider/ifconfig/aix.rb
927
925
  - lib/chef/provider/ifconfig/debian.rb
928
926
  - lib/chef/provider/ifconfig/redhat.rb
927
+ - lib/chef/provider/ifconfig.rb
929
928
  - lib/chef/provider/link.rb
930
929
  - lib/chef/provider/log.rb
931
930
  - lib/chef/provider/lwrp_base.rb
932
931
  - lib/chef/provider/mdadm.rb
933
- - lib/chef/provider/mount.rb
934
932
  - lib/chef/provider/mount/aix.rb
935
933
  - lib/chef/provider/mount/mount.rb
936
934
  - lib/chef/provider/mount/solaris.rb
937
935
  - lib/chef/provider/mount/windows.rb
936
+ - lib/chef/provider/mount.rb
938
937
  - lib/chef/provider/ohai.rb
939
- - lib/chef/provider/package.rb
940
938
  - lib/chef/provider/package/aix.rb
941
939
  - lib/chef/provider/package/apt.rb
942
940
  - lib/chef/provider/package/dpkg.rb
@@ -945,6 +943,7 @@ files:
945
943
  - lib/chef/provider/package/freebsd/pkg.rb
946
944
  - lib/chef/provider/package/freebsd/pkgng.rb
947
945
  - lib/chef/provider/package/freebsd/port.rb
946
+ - lib/chef/provider/package/homebrew.rb
948
947
  - lib/chef/provider/package/ips.rb
949
948
  - lib/chef/provider/package/macports.rb
950
949
  - lib/chef/provider/package/pacman.rb
@@ -954,27 +953,29 @@ files:
954
953
  - lib/chef/provider/package/rubygems.rb
955
954
  - lib/chef/provider/package/smartos.rb
956
955
  - lib/chef/provider/package/solaris.rb
957
- - lib/chef/provider/package/windows.rb
958
956
  - lib/chef/provider/package/windows/msi.rb
957
+ - lib/chef/provider/package/windows.rb
959
958
  - lib/chef/provider/package/yum-dump.py
960
959
  - lib/chef/provider/package/yum.rb
961
960
  - lib/chef/provider/package/zypper.rb
961
+ - lib/chef/provider/package.rb
962
962
  - lib/chef/provider/powershell_script.rb
963
963
  - lib/chef/provider/reboot.rb
964
964
  - lib/chef/provider/registry_key.rb
965
965
  - lib/chef/provider/remote_directory.rb
966
- - lib/chef/provider/remote_file.rb
967
966
  - lib/chef/provider/remote_file/cache_control_data.rb
968
967
  - lib/chef/provider/remote_file/content.rb
969
968
  - lib/chef/provider/remote_file/fetcher.rb
970
969
  - lib/chef/provider/remote_file/ftp.rb
971
970
  - lib/chef/provider/remote_file/http.rb
972
971
  - lib/chef/provider/remote_file/local_file.rb
972
+ - lib/chef/provider/remote_file.rb
973
973
  - lib/chef/provider/resource_update.rb
974
974
  - lib/chef/provider/route.rb
975
975
  - lib/chef/provider/ruby_block.rb
976
976
  - lib/chef/provider/script.rb
977
- - lib/chef/provider/service.rb
977
+ - lib/chef/provider/service/aix.rb
978
+ - lib/chef/provider/service/aixinit.rb
978
979
  - lib/chef/provider/service/arch.rb
979
980
  - lib/chef/provider/service/debian.rb
980
981
  - lib/chef/provider/service/freebsd.rb
@@ -989,24 +990,26 @@ files:
989
990
  - lib/chef/provider/service/systemd.rb
990
991
  - lib/chef/provider/service/upstart.rb
991
992
  - lib/chef/provider/service/windows.rb
993
+ - lib/chef/provider/service.rb
992
994
  - lib/chef/provider/subversion.rb
993
- - lib/chef/provider/template.rb
994
995
  - lib/chef/provider/template/content.rb
996
+ - lib/chef/provider/template.rb
995
997
  - lib/chef/provider/template_finder.rb
996
- - lib/chef/provider/user.rb
997
998
  - lib/chef/provider/user/aix.rb
998
999
  - lib/chef/provider/user/dscl.rb
999
1000
  - lib/chef/provider/user/pw.rb
1000
1001
  - lib/chef/provider/user/solaris.rb
1001
1002
  - lib/chef/provider/user/useradd.rb
1002
1003
  - lib/chef/provider/user/windows.rb
1004
+ - lib/chef/provider/user.rb
1003
1005
  - lib/chef/provider/whyrun_safe_ruby_block.rb
1004
1006
  - lib/chef/provider/windows_script.rb
1007
+ - lib/chef/provider.rb
1008
+ - lib/chef/provider_resolver.rb
1005
1009
  - lib/chef/providers.rb
1006
1010
  - lib/chef/recipe.rb
1007
1011
  - lib/chef/request_id.rb
1008
1012
  - lib/chef/reserved_names.rb
1009
- - lib/chef/resource.rb
1010
1013
  - lib/chef/resource/apt_package.rb
1011
1014
  - lib/chef/resource/bash.rb
1012
1015
  - lib/chef/resource/batch.rb
@@ -1022,6 +1025,7 @@ files:
1022
1025
  - lib/chef/resource/deploy_revision.rb
1023
1026
  - lib/chef/resource/directory.rb
1024
1027
  - lib/chef/resource/dpkg_package.rb
1028
+ - lib/chef/resource/dsc_script.rb
1025
1029
  - lib/chef/resource/easy_install_package.rb
1026
1030
  - lib/chef/resource/env.rb
1027
1031
  - lib/chef/resource/erl_call.rb
@@ -1031,6 +1035,7 @@ files:
1031
1035
  - lib/chef/resource/gem_package.rb
1032
1036
  - lib/chef/resource/git.rb
1033
1037
  - lib/chef/resource/group.rb
1038
+ - lib/chef/resource/homebrew_package.rb
1034
1039
  - lib/chef/resource/http_request.rb
1035
1040
  - lib/chef/resource/ifconfig.rb
1036
1041
  - lib/chef/resource/ips_package.rb
@@ -1070,21 +1075,24 @@ files:
1070
1075
  - lib/chef/resource/windows_script.rb
1071
1076
  - lib/chef/resource/windows_service.rb
1072
1077
  - lib/chef/resource/yum_package.rb
1073
- - lib/chef/resource_collection.rb
1078
+ - lib/chef/resource.rb
1079
+ - lib/chef/resource_collection/resource_collection_serialization.rb
1080
+ - lib/chef/resource_collection/resource_list.rb
1081
+ - lib/chef/resource_collection/resource_set.rb
1074
1082
  - lib/chef/resource_collection/stepable_iterator.rb
1083
+ - lib/chef/resource_collection.rb
1075
1084
  - lib/chef/resource_definition.rb
1076
1085
  - lib/chef/resource_definition_list.rb
1077
- - lib/chef/resource_platform_map.rb
1078
1086
  - lib/chef/resource_reporter.rb
1079
1087
  - lib/chef/resources.rb
1080
1088
  - lib/chef/rest.rb
1081
1089
  - lib/chef/role.rb
1082
- - lib/chef/run_context.rb
1083
1090
  - lib/chef/run_context/cookbook_compiler.rb
1084
- - lib/chef/run_list.rb
1091
+ - lib/chef/run_context.rb
1085
1092
  - lib/chef/run_list/run_list_expansion.rb
1086
1093
  - lib/chef/run_list/run_list_item.rb
1087
1094
  - lib/chef/run_list/versioned_recipe_list.rb
1095
+ - lib/chef/run_list.rb
1088
1096
  - lib/chef/run_lock.rb
1089
1097
  - lib/chef/run_status.rb
1090
1098
  - lib/chef/runner.rb
@@ -1093,33 +1101,38 @@ files:
1093
1101
  - lib/chef/search/query.rb
1094
1102
  - lib/chef/server_api.rb
1095
1103
  - lib/chef/shef/ext.rb
1096
- - lib/chef/shell.rb
1097
1104
  - lib/chef/shell/ext.rb
1098
1105
  - lib/chef/shell/model_wrapper.rb
1099
1106
  - lib/chef/shell/shell_rest.rb
1100
1107
  - lib/chef/shell/shell_session.rb
1108
+ - lib/chef/shell.rb
1101
1109
  - lib/chef/shell_out.rb
1102
1110
  - lib/chef/tasks/chef_repo.rake
1103
1111
  - lib/chef/user.rb
1104
1112
  - lib/chef/util/backup.rb
1105
1113
  - lib/chef/util/diff.rb
1114
+ - lib/chef/util/dsc/configuration_generator.rb
1115
+ - lib/chef/util/dsc/lcm_output_parser.rb
1116
+ - lib/chef/util/dsc/local_configuration_manager.rb
1117
+ - lib/chef/util/dsc/resource_info.rb
1106
1118
  - lib/chef/util/editor.rb
1107
1119
  - lib/chef/util/file_edit.rb
1108
1120
  - lib/chef/util/path_helper.rb
1121
+ - lib/chef/util/powershell/cmdlet.rb
1122
+ - lib/chef/util/powershell/cmdlet_result.rb
1109
1123
  - lib/chef/util/selinux.rb
1110
1124
  - lib/chef/util/threaded_job_queue.rb
1111
- - lib/chef/util/windows.rb
1112
1125
  - lib/chef/util/windows/net_group.rb
1113
1126
  - lib/chef/util/windows/net_use.rb
1114
1127
  - lib/chef/util/windows/net_user.rb
1115
1128
  - lib/chef/util/windows/volume.rb
1116
- - lib/chef/version.rb
1129
+ - lib/chef/util/windows.rb
1117
1130
  - lib/chef/version/platform.rb
1131
+ - lib/chef/version.rb
1118
1132
  - lib/chef/version_class.rb
1119
- - lib/chef/version_constraint.rb
1120
1133
  - lib/chef/version_constraint/platform.rb
1134
+ - lib/chef/version_constraint.rb
1121
1135
  - lib/chef/whitelist.rb
1122
- - lib/chef/win32/api.rb
1123
1136
  - lib/chef/win32/api/error.rb
1124
1137
  - lib/chef/win32/api/file.rb
1125
1138
  - lib/chef/win32/api/installer.rb
@@ -1131,24 +1144,29 @@ files:
1131
1144
  - lib/chef/win32/api/synchronization.rb
1132
1145
  - lib/chef/win32/api/system.rb
1133
1146
  - lib/chef/win32/api/unicode.rb
1147
+ - lib/chef/win32/api.rb
1134
1148
  - lib/chef/win32/error.rb
1135
- - lib/chef/win32/file.rb
1136
1149
  - lib/chef/win32/file/info.rb
1150
+ - lib/chef/win32/file.rb
1137
1151
  - lib/chef/win32/handle.rb
1138
1152
  - lib/chef/win32/memory.rb
1139
1153
  - lib/chef/win32/mutex.rb
1140
1154
  - lib/chef/win32/process.rb
1141
1155
  - lib/chef/win32/registry.rb
1142
- - lib/chef/win32/security.rb
1143
1156
  - lib/chef/win32/security/ace.rb
1144
1157
  - lib/chef/win32/security/acl.rb
1145
1158
  - lib/chef/win32/security/securable_object.rb
1146
1159
  - lib/chef/win32/security/security_descriptor.rb
1147
1160
  - lib/chef/win32/security/sid.rb
1148
1161
  - lib/chef/win32/security/token.rb
1162
+ - lib/chef/win32/security.rb
1149
1163
  - lib/chef/win32/unicode.rb
1150
1164
  - lib/chef/win32/version.rb
1151
1165
  - lib/chef/workstation_config_loader.rb
1166
+ - lib/chef.rb
1167
+ - tasks/rspec.rb
1168
+ - spec/.DS_Store
1169
+ - spec/data/.DS_Store
1152
1170
  - spec/data/apt/chef-integration-test-1.0/debian/changelog
1153
1171
  - spec/data/apt/chef-integration-test-1.0/debian/compat
1154
1172
  - spec/data/apt/chef-integration-test-1.0/debian/control
@@ -1178,11 +1196,11 @@ files:
1178
1196
  - spec/data/apt/var/www/apt/db/references.db
1179
1197
  - spec/data/apt/var/www/apt/db/release.caches.db
1180
1198
  - spec/data/apt/var/www/apt/db/version
1181
- - spec/data/apt/var/www/apt/dists/sid/Release
1182
1199
  - spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages
1183
1200
  - spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages.gz
1184
1201
  - spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Release
1185
1202
  - spec/data/apt/var/www/apt/dists/sid/main/binary-i386/Packages
1203
+ - spec/data/apt/var/www/apt/dists/sid/Release
1186
1204
  - spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.0-1_amd64.deb
1187
1205
  - spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.1-1_amd64.deb
1188
1206
  - spec/data/bad-config.rb
@@ -1193,12 +1211,14 @@ files:
1193
1211
  - spec/data/bootstrap/secret.erb
1194
1212
  - spec/data/bootstrap/test-hints.erb
1195
1213
  - spec/data/bootstrap/test.erb
1196
- - spec/data/cb_version_cookbooks/tatft/README.rdoc
1214
+ - spec/data/cb_version_cookbooks/cookbook2/files/test.txt
1215
+ - spec/data/cb_version_cookbooks/cookbook2/templates/test.erb
1197
1216
  - spec/data/cb_version_cookbooks/tatft/attributes/default.rb
1198
1217
  - spec/data/cb_version_cookbooks/tatft/definitions/runit_service.rb
1199
1218
  - spec/data/cb_version_cookbooks/tatft/files/default/giant_blob.tgz
1200
1219
  - spec/data/cb_version_cookbooks/tatft/libraries/ownage.rb
1201
1220
  - spec/data/cb_version_cookbooks/tatft/providers/lwp.rb
1221
+ - spec/data/cb_version_cookbooks/tatft/README.rdoc
1202
1222
  - spec/data/cb_version_cookbooks/tatft/recipes/default.rb
1203
1223
  - spec/data/cb_version_cookbooks/tatft/resources/lwr.rb
1204
1224
  - spec/data/cb_version_cookbooks/tatft/templates/default/configuration.erb
@@ -1230,13 +1250,15 @@ files:
1230
1250
  - spec/data/cookbooks/borken/recipes/default.rb
1231
1251
  - spec/data/cookbooks/borken/templates/default/borken.erb
1232
1252
  - spec/data/cookbooks/chefignore
1253
+ - spec/data/cookbooks/ignorken/files/default/not_me.rb
1233
1254
  - spec/data/cookbooks/ignorken/metadata.rb
1234
1255
  - spec/data/cookbooks/ignorken/recipes/default.rb
1235
1256
  - spec/data/cookbooks/ignorken/recipes/ignoreme.rb
1257
+ - spec/data/cookbooks/ignorken/templates/ubuntu-12.10/not_me.rb
1236
1258
  - spec/data/cookbooks/java/files/default/java.response
1237
1259
  - spec/data/cookbooks/java/metadata.rb
1238
- - spec/data/cookbooks/name-mismatch-versionnumber/README.md
1239
1260
  - spec/data/cookbooks/name-mismatch-versionnumber/metadata.rb
1261
+ - spec/data/cookbooks/name-mismatch-versionnumber/README.md
1240
1262
  - spec/data/cookbooks/name-mismatch-versionnumber/recipes/default.rb
1241
1263
  - spec/data/cookbooks/openldap/attributes/default.rb
1242
1264
  - spec/data/cookbooks/openldap/attributes/smokey.rb
@@ -1252,6 +1274,8 @@ files:
1252
1274
  - spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file1.txt
1253
1275
  - spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file2.txt
1254
1276
  - spec/data/cookbooks/openldap/files/default/remotedir/subdir_with_no_file_just_a_subsubdir/the_subsubdir/some_file.txt
1277
+ - spec/data/cookbooks/openldap/libraries/openldap/version.rb
1278
+ - spec/data/cookbooks/openldap/libraries/openldap.rb
1255
1279
  - spec/data/cookbooks/openldap/metadata.rb
1256
1280
  - spec/data/cookbooks/openldap/recipes/default.rb
1257
1281
  - spec/data/cookbooks/openldap/recipes/gigantor.rb
@@ -1280,11 +1304,11 @@ files:
1280
1304
  - spec/data/git_bundles/sinatra-test-app-with-callback-files.gitbundle
1281
1305
  - spec/data/git_bundles/sinatra-test-app-with-symlinks.gitbundle
1282
1306
  - spec/data/git_bundles/sinatra-test-app.gitbundle
1283
- - spec/data/incomplete-metadata-chef-repo/incomplete-metadata/README.md
1284
1307
  - spec/data/incomplete-metadata-chef-repo/incomplete-metadata/metadata.rb
1308
+ - spec/data/incomplete-metadata-chef-repo/incomplete-metadata/README.md
1285
1309
  - spec/data/incomplete-metadata-chef-repo/incomplete-metadata/recipes/default.rb
1286
- - spec/data/invalid-metadata-chef-repo/invalid-metadata/README.md
1287
1310
  - spec/data/invalid-metadata-chef-repo/invalid-metadata/metadata.rb
1311
+ - spec/data/invalid-metadata-chef-repo/invalid-metadata/README.md
1288
1312
  - spec/data/invalid-metadata-chef-repo/invalid-metadata/recipes/default.rb
1289
1313
  - spec/data/kitchen/chefignore
1290
1314
  - spec/data/kitchen/openldap/attributes/default.rb
@@ -1299,6 +1323,8 @@ files:
1299
1323
  - spec/data/knife_subcommand/test_explicit_category.rb
1300
1324
  - spec/data/knife_subcommand/test_name_mapping.rb
1301
1325
  - spec/data/knife_subcommand/test_yourself.rb
1326
+ - spec/data/lwrp/.DS_Store
1327
+ - spec/data/lwrp/providers/.DS_Store
1302
1328
  - spec/data/lwrp/providers/buck_passer.rb
1303
1329
  - spec/data/lwrp/providers/buck_passer_2.rb
1304
1330
  - spec/data/lwrp/providers/embedded_resource_accesses_providers_scope.rb
@@ -1306,11 +1332,15 @@ files:
1306
1332
  - spec/data/lwrp/providers/monkey_name_printer.rb
1307
1333
  - spec/data/lwrp/providers/paint_drying_watcher.rb
1308
1334
  - spec/data/lwrp/providers/thumb_twiddler.rb
1335
+ - spec/data/lwrp/resources/.DS_Store
1309
1336
  - spec/data/lwrp/resources/bar.rb
1310
1337
  - spec/data/lwrp/resources/foo.rb
1311
1338
  - spec/data/lwrp/resources_with_default_attributes/nodeattr.rb
1312
1339
  - spec/data/lwrp_const_scoping/resources/conflict.rb
1340
+ - spec/data/lwrp_override/.DS_Store
1341
+ - spec/data/lwrp_override/providers/.DS_Store
1313
1342
  - spec/data/lwrp_override/providers/buck_passer.rb
1343
+ - spec/data/lwrp_override/resources/.DS_Store
1314
1344
  - spec/data/lwrp_override/resources/foo.rb
1315
1345
  - spec/data/mac_users/10.7-8.plist.xml
1316
1346
  - spec/data/mac_users/10.7-8.shadow.xml
@@ -1375,6 +1405,16 @@ files:
1375
1405
  - spec/data/run_context/cookbooks/no-default-attr/providers/provider.rb
1376
1406
  - spec/data/run_context/cookbooks/no-default-attr/recipes/default.rb
1377
1407
  - spec/data/run_context/cookbooks/no-default-attr/resources/resource.rb
1408
+ - spec/data/run_context/cookbooks/test/attributes/default.rb
1409
+ - spec/data/run_context/cookbooks/test/attributes/george.rb
1410
+ - spec/data/run_context/cookbooks/test/definitions/new_animals.rb
1411
+ - spec/data/run_context/cookbooks/test/definitions/new_cat.rb
1412
+ - spec/data/run_context/cookbooks/test/definitions/test_res.rb
1413
+ - spec/data/run_context/cookbooks/test/providers/provider.rb
1414
+ - spec/data/run_context/cookbooks/test/recipes/default.rb
1415
+ - spec/data/run_context/cookbooks/test/recipes/one.rb
1416
+ - spec/data/run_context/cookbooks/test/recipes/two.rb
1417
+ - spec/data/run_context/cookbooks/test/resources/resource.rb
1378
1418
  - spec/data/run_context/cookbooks/test-with-circular-deps/attributes/default.rb
1379
1419
  - spec/data/run_context/cookbooks/test-with-circular-deps/definitions/test_with-circular-deps_res.rb
1380
1420
  - spec/data/run_context/cookbooks/test-with-circular-deps/libraries/lib.rb
@@ -1390,16 +1430,6 @@ files:
1390
1430
  - spec/data/run_context/cookbooks/test-with-deps/recipes/default.rb
1391
1431
  - spec/data/run_context/cookbooks/test-with-deps/recipes/server.rb
1392
1432
  - spec/data/run_context/cookbooks/test-with-deps/resources/resource.rb
1393
- - spec/data/run_context/cookbooks/test/attributes/default.rb
1394
- - spec/data/run_context/cookbooks/test/attributes/george.rb
1395
- - spec/data/run_context/cookbooks/test/definitions/new_animals.rb
1396
- - spec/data/run_context/cookbooks/test/definitions/new_cat.rb
1397
- - spec/data/run_context/cookbooks/test/definitions/test_res.rb
1398
- - spec/data/run_context/cookbooks/test/providers/provider.rb
1399
- - spec/data/run_context/cookbooks/test/recipes/default.rb
1400
- - spec/data/run_context/cookbooks/test/recipes/one.rb
1401
- - spec/data/run_context/cookbooks/test/recipes/two.rb
1402
- - spec/data/run_context/cookbooks/test/resources/resource.rb
1403
1433
  - spec/data/run_context/nodes/run_context.rb
1404
1434
  - spec/data/search_queries_to_transform.txt
1405
1435
  - spec/data/shef-config.rb
@@ -1409,8 +1439,8 @@ files:
1409
1439
  - spec/data/ssl/key.pem
1410
1440
  - spec/data/ssl/private_key.pem
1411
1441
  - spec/data/ssl/private_key_with_whitespace.pem
1412
- - spec/data/standalone_cookbook/Gemfile
1413
1442
  - spec/data/standalone_cookbook/chefignore
1443
+ - spec/data/standalone_cookbook/Gemfile
1414
1444
  - spec/data/standalone_cookbook/recipes/default.rb
1415
1445
  - spec/data/standalone_cookbook/vendor/bundle/ruby/2.0.0/gems/multi_json-1.9.0/lib/multi_json.rb
1416
1446
  - spec/data/templates/seattle.txt
@@ -1419,14 +1449,17 @@ files:
1419
1449
  - spec/data/trusted_certs/opscode.pem
1420
1450
  - spec/data/trusted_certs/root.pem
1421
1451
  - spec/functional/application_spec.rb
1422
- - spec/functional/assets/PkgA.1.0.0.0.bff
1423
- - spec/functional/assets/PkgA.2.0.0.0.bff
1452
+ - spec/functional/assets/chefinittest
1424
1453
  - spec/functional/assets/dummy-1-0.aix6.1.noarch.rpm
1425
1454
  - spec/functional/assets/dummy-2-0.aix6.1.noarch.rpm
1426
1455
  - spec/functional/assets/mytest-1.0-1.noarch.rpm
1427
1456
  - spec/functional/assets/mytest-2.0-1.noarch.rpm
1457
+ - spec/functional/assets/PkgA.1.0.0.0.bff
1458
+ - spec/functional/assets/PkgA.2.0.0.0.bff
1459
+ - spec/functional/assets/testchefsubsys
1428
1460
  - spec/functional/dsl/reboot_pending_spec.rb
1429
1461
  - spec/functional/dsl/registry_helper_spec.rb
1462
+ - spec/functional/event_loggers/windows_eventlog_spec.rb
1430
1463
  - spec/functional/file_content_management/deploy_strategies_spec.rb
1431
1464
  - spec/functional/http/simple_spec.rb
1432
1465
  - spec/functional/knife/configure_spec.rb
@@ -1438,6 +1471,8 @@ files:
1438
1471
  - spec/functional/provider/remote_file/cache_control_data_spec.rb
1439
1472
  - spec/functional/provider/whyrun_safe_ruby_block_spec.rb
1440
1473
  - spec/functional/rebooter_spec.rb
1474
+ - spec/functional/resource/aix_service_spec.rb
1475
+ - spec/functional/resource/aixinit_service_spec.rb
1441
1476
  - spec/functional/resource/base.rb
1442
1477
  - spec/functional/resource/batch_spec.rb
1443
1478
  - spec/functional/resource/bff_spec.rb
@@ -1445,7 +1480,9 @@ files:
1445
1480
  - spec/functional/resource/cron_spec.rb
1446
1481
  - spec/functional/resource/deploy_revision_spec.rb
1447
1482
  - spec/functional/resource/directory_spec.rb
1483
+ - spec/functional/resource/dsc_script_spec.rb
1448
1484
  - spec/functional/resource/env_spec.rb
1485
+ - spec/functional/resource/execute_spec.rb
1449
1486
  - spec/functional/resource/file_spec.rb
1450
1487
  - spec/functional/resource/git_spec.rb
1451
1488
  - spec/functional/resource/group_spec.rb
@@ -1467,6 +1504,8 @@ files:
1467
1504
  - spec/functional/run_lock_spec.rb
1468
1505
  - spec/functional/shell_spec.rb
1469
1506
  - spec/functional/tiny_server_spec.rb
1507
+ - spec/functional/util/path_helper_spec.rb
1508
+ - spec/functional/util/powershell/cmdlet_spec.rb
1470
1509
  - spec/functional/version_spec.rb
1471
1510
  - spec/functional/win32/registry_helper_spec.rb
1472
1511
  - spec/functional/win32/security_spec.rb
@@ -1529,20 +1568,23 @@ files:
1529
1568
  - spec/support/shared/integration/app_server_support.rb
1530
1569
  - spec/support/shared/integration/integration_helper.rb
1531
1570
  - spec/support/shared/integration/knife_support.rb
1532
- - spec/support/shared/matchers.rb
1571
+ - spec/support/shared/matchers/exit_with_code.rb
1572
+ - spec/support/shared/matchers/match_environment_variable.rb
1573
+ - spec/support/shared/shared_examples.rb
1533
1574
  - spec/support/shared/unit/api_error_inspector.rb
1534
1575
  - spec/support/shared/unit/execute_resource.rb
1535
1576
  - spec/support/shared/unit/file_system_support.rb
1536
1577
  - spec/support/shared/unit/platform_introspector.rb
1537
1578
  - spec/support/shared/unit/provider/file.rb
1538
1579
  - spec/support/shared/unit/provider/useradd_based_user_provider.rb
1580
+ - spec/support/shared/unit/resource/static_provider_resolution.rb
1539
1581
  - spec/support/shared/unit/script_resource.rb
1540
1582
  - spec/support/shared/unit/windows_script_resource.rb
1541
1583
  - spec/tiny_server.rb
1542
1584
  - spec/unit/api_client/registration_spec.rb
1543
1585
  - spec/unit/api_client_spec.rb
1544
1586
  - spec/unit/application/agent_spec.rb
1545
- - spec/unit/application/apply.rb
1587
+ - spec/unit/application/apply_spec.rb
1546
1588
  - spec/unit/application/client_spec.rb
1547
1589
  - spec/unit/application/knife_spec.rb
1548
1590
  - spec/unit/application/server_spec.rb
@@ -1580,6 +1622,7 @@ files:
1580
1622
  - spec/unit/dsl/reboot_pending_spec.rb
1581
1623
  - spec/unit/dsl/recipe_spec.rb
1582
1624
  - spec/unit/dsl/regsitry_helper_spec.rb
1625
+ - spec/unit/encrypted_data_bag_item/check_encrypted_spec.rb
1583
1626
  - spec/unit/encrypted_data_bag_item_spec.rb
1584
1627
  - spec/unit/environment_spec.rb
1585
1628
  - spec/unit/exceptions_spec.rb
@@ -1639,6 +1682,7 @@ files:
1639
1682
  - spec/unit/knife/data_bag_create_spec.rb
1640
1683
  - spec/unit/knife/data_bag_edit_spec.rb
1641
1684
  - spec/unit/knife/data_bag_from_file_spec.rb
1685
+ - spec/unit/knife/data_bag_secret_options_spec.rb
1642
1686
  - spec/unit/knife/data_bag_show_spec.rb
1643
1687
  - spec/unit/knife/environment_compare_spec.rb
1644
1688
  - spec/unit/knife/environment_create_spec.rb
@@ -1689,6 +1733,7 @@ files:
1689
1733
  - spec/unit/mixin/deep_merge_spec.rb
1690
1734
  - spec/unit/mixin/deprecation_spec.rb
1691
1735
  - spec/unit/mixin/enforce_ownership_and_permissions_spec.rb
1736
+ - spec/unit/mixin/homebrew_user_spec.rb
1692
1737
  - spec/unit/mixin/params_validate_spec.rb
1693
1738
  - spec/unit/mixin/path_sanity_spec.rb
1694
1739
  - spec/unit/mixin/securable_spec.rb
@@ -1701,6 +1746,7 @@ files:
1701
1746
  - spec/unit/monologger_spec.rb
1702
1747
  - spec/unit/node/attribute_spec.rb
1703
1748
  - spec/unit/node/immutable_collections_spec.rb
1749
+ - spec/unit/node_map_spec.rb
1704
1750
  - spec/unit/node_spec.rb
1705
1751
  - spec/unit/platform/query_helpers_spec.rb
1706
1752
  - spec/unit/platform_spec.rb
@@ -1716,6 +1762,7 @@ files:
1716
1762
  - spec/unit/provider/deploy/timestamped_spec.rb
1717
1763
  - spec/unit/provider/deploy_spec.rb
1718
1764
  - spec/unit/provider/directory_spec.rb
1765
+ - spec/unit/provider/dsc_script_spec.rb
1719
1766
  - spec/unit/provider/env/windows_spec.rb
1720
1767
  - spec/unit/provider/env_spec.rb
1721
1768
  - spec/unit/provider/erl_call_spec.rb
@@ -1752,6 +1799,7 @@ files:
1752
1799
  - spec/unit/provider/package/freebsd/pkg_spec.rb
1753
1800
  - spec/unit/provider/package/freebsd/pkgng_spec.rb
1754
1801
  - spec/unit/provider/package/freebsd/port_spec.rb
1802
+ - spec/unit/provider/package/homebrew_spec.rb
1755
1803
  - spec/unit/provider/package/ips_spec.rb
1756
1804
  - spec/unit/provider/package/macports_spec.rb
1757
1805
  - spec/unit/provider/package/pacman_spec.rb
@@ -1779,6 +1827,8 @@ files:
1779
1827
  - spec/unit/provider/route_spec.rb
1780
1828
  - spec/unit/provider/ruby_block_spec.rb
1781
1829
  - spec/unit/provider/script_spec.rb
1830
+ - spec/unit/provider/service/aix_service_spec.rb
1831
+ - spec/unit/provider/service/aixinit_service_spec.rb
1782
1832
  - spec/unit/provider/service/arch_service_spec.rb
1783
1833
  - spec/unit/provider/service/debian_service_spec.rb
1784
1834
  - spec/unit/provider/service/freebsd_service_spec.rb
@@ -1804,6 +1854,7 @@ files:
1804
1854
  - spec/unit/provider/user/windows_spec.rb
1805
1855
  - spec/unit/provider/user_spec.rb
1806
1856
  - spec/unit/provider/whyrun_safe_ruby_block_spec.rb
1857
+ - spec/unit/provider_resolver_spec.rb
1807
1858
  - spec/unit/provider_spec.rb
1808
1859
  - spec/unit/pure_application_spec.rb
1809
1860
  - spec/unit/recipe_spec.rb
@@ -1822,6 +1873,7 @@ files:
1822
1873
  - spec/unit/resource/deploy_spec.rb
1823
1874
  - spec/unit/resource/directory_spec.rb
1824
1875
  - spec/unit/resource/dpkg_package_spec.rb
1876
+ - spec/unit/resource/dsc_script_spec.rb
1825
1877
  - spec/unit/resource/easy_install_package_spec.rb
1826
1878
  - spec/unit/resource/env_spec.rb
1827
1879
  - spec/unit/resource/erl_call_spec.rb
@@ -1831,6 +1883,7 @@ files:
1831
1883
  - spec/unit/resource/gem_package_spec.rb
1832
1884
  - spec/unit/resource/git_spec.rb
1833
1885
  - spec/unit/resource/group_spec.rb
1886
+ - spec/unit/resource/homebrew_package_spec.rb
1834
1887
  - spec/unit/resource/http_request_spec.rb
1835
1888
  - spec/unit/resource/ifconfig_spec.rb
1836
1889
  - spec/unit/resource/ips_package_spec.rb
@@ -1865,10 +1918,11 @@ files:
1865
1918
  - spec/unit/resource/windows_package_spec.rb
1866
1919
  - spec/unit/resource/windows_service_spec.rb
1867
1920
  - spec/unit/resource/yum_package_spec.rb
1921
+ - spec/unit/resource_collection/resource_list_spec.rb
1922
+ - spec/unit/resource_collection/resource_set_spec.rb
1868
1923
  - spec/unit/resource_collection/stepable_iterator_spec.rb
1869
1924
  - spec/unit/resource_collection_spec.rb
1870
1925
  - spec/unit/resource_definition_spec.rb
1871
- - spec/unit/resource_platform_map_spec.rb
1872
1926
  - spec/unit/resource_reporter_spec.rb
1873
1927
  - spec/unit/resource_spec.rb
1874
1928
  - spec/unit/rest/auth_credentials_spec.rb
@@ -1893,9 +1947,13 @@ files:
1893
1947
  - spec/unit/user_spec.rb
1894
1948
  - spec/unit/util/backup_spec.rb
1895
1949
  - spec/unit/util/diff_spec.rb
1950
+ - spec/unit/util/dsc/configuration_generator_spec.rb
1951
+ - spec/unit/util/dsc/lcm_output_parser_spec.rb
1952
+ - spec/unit/util/dsc/local_configuration_manager_spec.rb
1896
1953
  - spec/unit/util/editor_spec.rb
1897
1954
  - spec/unit/util/file_edit_spec.rb
1898
1955
  - spec/unit/util/path_helper_spec.rb
1956
+ - spec/unit/util/powershell/cmdlet_spec.rb
1899
1957
  - spec/unit/util/selinux_spec.rb
1900
1958
  - spec/unit/util/threaded_job_queue_spec.rb
1901
1959
  - spec/unit/version/platform_spec.rb
@@ -1904,30 +1962,38 @@ files:
1904
1962
  - spec/unit/version_constraint_spec.rb
1905
1963
  - spec/unit/windows_service_spec.rb
1906
1964
  - spec/unit/workstation_config_loader_spec.rb
1907
- - tasks/rspec.rb
1965
+ - bin/chef-client
1966
+ - bin/chef-solo
1967
+ - bin/knife
1968
+ - bin/chef-shell
1969
+ - bin/shef
1970
+ - bin/chef-apply
1971
+ - bin/chef-service-manager
1972
+ - bin/chef-windows-service
1908
1973
  homepage: http://www.getchef.com
1909
1974
  licenses:
1910
1975
  - Apache-2.0
1911
- metadata: {}
1912
1976
  post_install_message:
1913
1977
  rdoc_options: []
1914
1978
  require_paths:
1915
1979
  - lib
1916
1980
  required_ruby_version: !ruby/object:Gem::Requirement
1981
+ none: false
1917
1982
  requirements:
1918
- - - ">="
1983
+ - - ! '>='
1919
1984
  - !ruby/object:Gem::Version
1920
1985
  version: 1.9.3
1921
1986
  required_rubygems_version: !ruby/object:Gem::Requirement
1987
+ none: false
1922
1988
  requirements:
1923
- - - ">"
1989
+ - - ! '>'
1924
1990
  - !ruby/object:Gem::Version
1925
1991
  version: 1.3.1
1926
1992
  requirements: []
1927
1993
  rubyforge_project:
1928
- rubygems_version: 2.2.2
1994
+ rubygems_version: 1.8.29
1929
1995
  signing_key:
1930
- specification_version: 4
1996
+ specification_version: 3
1931
1997
  summary: A systems integration framework, built to bring the benefits of configuration
1932
1998
  management to your entire infrastructure.
1933
1999
  test_files: []