vagrant-unbundled 1.9.7.1 → 1.9.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (280) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/Gemfile.lock +10 -6
  4. data/contrib/bash/completion.sh +1 -1
  5. data/contrib/sudoers/linux-ubuntu +3 -4
  6. data/lib/vagrant/errors.rb +8 -0
  7. data/lib/vagrant/machine.rb +2 -0
  8. data/lib/vagrant/util/platform.rb +1 -1
  9. data/lib/vagrant/util/powershell.rb +42 -13
  10. data/lib/vagrant/util/safe_exec.rb +13 -2
  11. data/lib/vagrant/util/ssh.rb +11 -1
  12. data/plugins/commands/box/command/update.rb +12 -7
  13. data/plugins/commands/login/client.rb +15 -6
  14. data/plugins/commands/login/command.rb +13 -3
  15. data/plugins/commands/up/command.rb +9 -0
  16. data/plugins/commands/validate/command.rb +4 -4
  17. data/plugins/guests/darwin/cap/shell_expand_guest_path.rb +2 -2
  18. data/plugins/guests/freebsd/cap/configure_networks.rb +1 -1
  19. data/plugins/guests/freebsd/cap/shell_expand_guest_path.rb +2 -2
  20. data/plugins/guests/linux/cap/shell_expand_guest_path.rb +2 -2
  21. data/plugins/guests/netbsd/cap/shell_expand_guest_path.rb +2 -2
  22. data/plugins/guests/openbsd/cap/shell_expand_guest_path.rb +2 -2
  23. data/plugins/guests/windows/cap/public_key.rb +21 -45
  24. data/plugins/kernel_v2/config/ssh_connect.rb +3 -0
  25. data/plugins/providers/docker/config.rb +4 -0
  26. data/plugins/providers/docker/driver/compose.rb +11 -4
  27. data/plugins/providers/hyperv/action/wait_for_ip_address.rb +15 -11
  28. data/plugins/providers/hyperv/scripts/get_network_config.ps1 +24 -9
  29. data/plugins/providers/virtualbox/action/prepare_nfs_settings.rb +18 -0
  30. data/plugins/provisioners/ansible/provisioner/host.rb +1 -1
  31. data/plugins/provisioners/chef/cap/debian/chef_install.rb +2 -2
  32. data/plugins/provisioners/chef/cap/freebsd/chef_install.rb +2 -2
  33. data/plugins/provisioners/chef/cap/omnios/chef_install.rb +2 -2
  34. data/plugins/provisioners/chef/cap/redhat/chef_install.rb +2 -2
  35. data/plugins/provisioners/chef/cap/suse/chef_install.rb +2 -2
  36. data/plugins/provisioners/chef/cap/windows/chef_install.rb +2 -2
  37. data/plugins/provisioners/chef/config/base.rb +17 -0
  38. data/plugins/provisioners/chef/config/chef_zero.rb +7 -0
  39. data/plugins/provisioners/chef/installer.rb +8 -7
  40. data/plugins/provisioners/chef/omnibus.rb +4 -6
  41. data/plugins/provisioners/chef/provisioner/base.rb +1 -0
  42. data/plugins/provisioners/chef/provisioner/chef_solo.rb +2 -1
  43. data/plugins/provisioners/file/provisioner.rb +18 -2
  44. data/plugins/provisioners/puppet/provisioner/puppet.rb +0 -2
  45. data/plugins/provisioners/salt/bootstrap-salt.sh +9 -5
  46. data/plugins/provisioners/shell/provisioner.rb +1 -1
  47. data/plugins/synced_folders/rsync/command/rsync_auto.rb +6 -1
  48. data/plugins/synced_folders/rsync/helper.rb +10 -0
  49. data/templates/locales/en.yml +27 -1
  50. data/templates/locales/providers_docker.yml +2 -0
  51. data/test/unit/base.rb +1 -3
  52. data/test/unit/plugins/commands/box/command/add_test.rb +3 -3
  53. data/test/unit/plugins/commands/box/command/remove_test.rb +6 -6
  54. data/test/unit/plugins/commands/box/command/repackage_test.rb +2 -4
  55. data/test/unit/plugins/commands/box/command/update_test.rb +36 -14
  56. data/test/unit/plugins/commands/init/command_test.rb +1 -1
  57. data/test/unit/plugins/commands/list-commands/command_test.rb +2 -2
  58. data/test/unit/plugins/commands/login/client_test.rb +5 -1
  59. data/test/unit/plugins/commands/package/command_test.rb +1 -1
  60. data/test/unit/plugins/commands/plugin/action/expunge_plugins_test.rb +1 -1
  61. data/test/unit/plugins/commands/plugin/action/install_gem_test.rb +3 -3
  62. data/test/unit/plugins/commands/plugin/action/plugin_exists_check_test.rb +3 -3
  63. data/test/unit/plugins/commands/plugin/action/uninstall_plugin_test.rb +1 -1
  64. data/test/unit/plugins/commands/plugin/action/update_gems_test.rb +2 -2
  65. data/test/unit/plugins/commands/port/command_test.rb +3 -3
  66. data/test/unit/plugins/commands/push/command_test.rb +1 -1
  67. data/test/unit/plugins/commands/snapshot/command/list_test.rb +2 -3
  68. data/test/unit/plugins/commands/ssh_config/command_test.rb +1 -1
  69. data/test/unit/plugins/commands/up/command_test.rb +69 -2
  70. data/test/unit/plugins/commands/validate/command_test.rb +47 -1
  71. data/test/unit/plugins/communicators/ssh/communicator_test.rb +5 -5
  72. data/test/unit/plugins/communicators/winrm/communicator_test.rb +6 -6
  73. data/test/unit/plugins/communicators/winrm/helper_test.rb +24 -23
  74. data/test/unit/plugins/communicators/winssh/communicator_test.rb +5 -5
  75. data/test/unit/plugins/guests/darwin/cap/shell_expand_guest_path_test.rb +43 -0
  76. data/test/unit/plugins/guests/freebsd/cap/configure_networks_test.rb +1 -1
  77. data/test/unit/plugins/guests/freebsd/cap/shell_expand_guest_path_test.rb +44 -0
  78. data/test/unit/plugins/guests/linux/cap/shell_expand_guest_path_test.rb +43 -0
  79. data/test/unit/plugins/guests/netbsd/cap/shell_expand_guest_path_test.rb +43 -0
  80. data/test/unit/plugins/guests/omnios/cap/mount_nfs_folder_test.rb +1 -3
  81. data/test/unit/plugins/guests/openbsd/cap/shell_expand_guest_path_test.rb +43 -0
  82. data/test/unit/plugins/guests/smartos/cap/change_host_name_test.rb +2 -2
  83. data/test/unit/plugins/guests/smartos/cap/configure_networks_test.rb +2 -2
  84. data/test/unit/plugins/guests/smartos/cap/halt_test.rb +2 -2
  85. data/test/unit/plugins/guests/smartos/cap/insert_public_key_test.rb +1 -1
  86. data/test/unit/plugins/guests/smartos/cap/mount_nfs_test.rb +2 -2
  87. data/test/unit/plugins/guests/smartos/cap/rsync_test.rb +2 -2
  88. data/test/unit/plugins/guests/windows/cap/insert_public_key_test.rb +2 -2
  89. data/test/unit/plugins/guests/windows/cap/remove_public_key_test.rb +4 -3
  90. data/test/unit/plugins/guests/windows/config_test.rb +1 -1
  91. data/test/unit/plugins/guests/windows/guest_network_test.rb +2 -2
  92. data/test/unit/plugins/hosts/linux/cap/nfs_test.rb +2 -0
  93. data/test/unit/plugins/kernel_v2/config/push_test.rb +1 -1
  94. data/test/unit/plugins/kernel_v2/config/vm_test.rb +7 -7
  95. data/test/unit/plugins/providers/docker/action/create_test.rb +1 -1
  96. data/test/unit/plugins/providers/docker/command/exec_test.rb +1 -1
  97. data/test/unit/plugins/providers/docker/config_test.rb +23 -4
  98. data/test/unit/plugins/providers/docker/driver_compose_test.rb +60 -30
  99. data/test/unit/plugins/providers/docker/driver_test.rb +31 -31
  100. data/test/unit/plugins/providers/docker/synced_folder_test.rb +3 -3
  101. data/test/unit/plugins/providers/hyperv/provider_test.rb +19 -19
  102. data/test/unit/plugins/providers/virtualbox/action/network_fix_ipv6_test.rb +2 -2
  103. data/test/unit/plugins/providers/virtualbox/action/network_test.rb +1 -1
  104. data/test/unit/plugins/providers/virtualbox/action/prepare_nfs_settings_test.rb +34 -8
  105. data/test/unit/plugins/providers/virtualbox/action/prepare_nfs_valid_ids_test.rb +3 -3
  106. data/test/unit/plugins/providers/virtualbox/cap_test.rb +2 -2
  107. data/test/unit/plugins/providers/virtualbox/config_test.rb +6 -6
  108. data/test/unit/plugins/providers/virtualbox/synced_folder_test.rb +6 -8
  109. data/test/unit/plugins/provisioners/ansible/config/guest_test.rb +1 -1
  110. data/test/unit/plugins/provisioners/ansible/config/host_test.rb +4 -4
  111. data/test/unit/plugins/provisioners/ansible/config/shared.rb +2 -2
  112. data/test/unit/plugins/provisioners/ansible/provisioner_test.rb +165 -157
  113. data/test/unit/plugins/provisioners/chef/command_builder_test.rb +2 -2
  114. data/test/unit/plugins/provisioners/chef/config/base_test.rb +13 -0
  115. data/test/unit/plugins/provisioners/chef/config/chef_zero_test.rb +11 -0
  116. data/test/unit/plugins/provisioners/chef/omnibus_test.rb +17 -7
  117. data/test/unit/plugins/provisioners/docker/config_test.rb +2 -1
  118. data/test/unit/plugins/provisioners/docker/provisioner_test.rb +13 -13
  119. data/test/unit/plugins/provisioners/file/provisioner_test.rb +32 -14
  120. data/test/unit/plugins/provisioners/puppet/provisioner/puppet_test.rb +51 -0
  121. data/test/unit/plugins/provisioners/salt/provisioner_test.rb +5 -5
  122. data/test/unit/plugins/provisioners/shell/provisioner_test.rb +35 -4
  123. data/test/unit/plugins/pushes/ftp/adapter_test.rb +1 -0
  124. data/test/unit/plugins/synced_folders/nfs/action_cleanup_test.rb +1 -1
  125. data/test/unit/plugins/synced_folders/nfs/config_test.rb +1 -1
  126. data/test/unit/plugins/synced_folders/rsync/command/rsync_auto_test.rb +44 -12
  127. data/test/unit/plugins/synced_folders/rsync/command/rsync_test.rb +5 -5
  128. data/test/unit/plugins/synced_folders/rsync/helper_test.rb +47 -29
  129. data/test/unit/plugins/synced_folders/rsync/synced_folder_test.rb +5 -5
  130. data/test/unit/vagrant/action/builtin/box_add_test.rb +27 -27
  131. data/test/unit/vagrant/action/builtin/box_check_outdated_test.rb +10 -10
  132. data/test/unit/vagrant/action/builtin/box_remove_test.rb +15 -15
  133. data/test/unit/vagrant/action/builtin/confirm_test.rb +1 -1
  134. data/test/unit/vagrant/action/builtin/graceful_halt_test.rb +2 -2
  135. data/test/unit/vagrant/action/builtin/handle_box_test.rb +8 -8
  136. data/test/unit/vagrant/action/builtin/handle_forwarded_port_collisions_test.rb +1 -1
  137. data/test/unit/vagrant/action/builtin/is_env_set_test.rb +2 -2
  138. data/test/unit/vagrant/action/builtin/is_state_test.rb +6 -6
  139. data/test/unit/vagrant/action/builtin/mixin_synced_folders_test.rb +6 -6
  140. data/test/unit/vagrant/action/builtin/provision_test.rb +1 -1
  141. data/test/unit/vagrant/action/builtin/provisioner_cleanup_test.rb +1 -1
  142. data/test/unit/vagrant/action/builtin/synced_folder_cleanup_test.rb +6 -6
  143. data/test/unit/vagrant/action/builtin/synced_folders_test.rb +3 -3
  144. data/test/unit/vagrant/batch_action_test.rb +2 -2
  145. data/test/unit/vagrant/box_collection_test.rb +1 -1
  146. data/test/unit/vagrant/box_test.rb +6 -6
  147. data/test/unit/vagrant/capability_host_test.rb +3 -3
  148. data/test/unit/vagrant/cli_test.rb +3 -3
  149. data/test/unit/vagrant/environment_test.rb +21 -20
  150. data/test/unit/vagrant/guest_test.rb +7 -7
  151. data/test/unit/vagrant/machine_index_test.rb +4 -4
  152. data/test/unit/vagrant/machine_test.rb +28 -17
  153. data/test/unit/vagrant/plugin/manager_test.rb +12 -12
  154. data/test/unit/vagrant/plugin/state_file_test.rb +2 -2
  155. data/test/unit/vagrant/plugin/v1/command_test.rb +9 -8
  156. data/test/unit/vagrant/plugin/v2/command_test.rb +54 -43
  157. data/test/unit/vagrant/plugin/v2/plugin_test.rb +4 -3
  158. data/test/unit/vagrant/plugin/v2/provider_test.rb +3 -3
  159. data/test/unit/vagrant/shared_helpers_test.rb +6 -6
  160. data/test/unit/vagrant/ui_test.rb +21 -21
  161. data/test/unit/vagrant/util/downloader_test.rb +7 -7
  162. data/test/unit/vagrant/util/ssh_test.rb +41 -5
  163. data/test/unit/vagrant/util/subprocess_test.rb +7 -7
  164. data/test/unit/vagrant_test.rb +9 -9
  165. data/vagrant.gemspec +3 -2
  166. data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/vagrant-spec.gemspec +1 -1
  167. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/.gitignore +7 -0
  168. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/.rspec +2 -0
  169. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/.travis.yml +5 -0
  170. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/CONTRIBUTORS.md +19 -0
  171. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Gemfile +12 -0
  172. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Gemfile.lock +44 -0
  173. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Guardfile +10 -0
  174. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/README.md +134 -0
  175. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Rakefile +10 -0
  176. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/fake_ftp.gemspec +22 -0
  177. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp.rb +5 -0
  178. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp/file.rb +34 -0
  179. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp/server.rb +340 -0
  180. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp/version.rb +3 -0
  181. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/fixtures/invisible_bike.jpg +0 -0
  182. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/fixtures/text_file.txt +1 -0
  183. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/functional/server_spec.rb +468 -0
  184. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/integration/server_spec.rb +81 -0
  185. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/models/fake_ftp/file_spec.rb +102 -0
  186. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/models/fake_ftp/server_spec.rb +76 -0
  187. data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/spec_helper.rb +18 -0
  188. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/.gitignore +14 -0
  189. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/.rubocop.yml +57 -0
  190. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/.travis.yml +21 -0
  191. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/CONTRIBUTING.rdoc +36 -0
  192. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/Gemfile +3 -0
  193. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/History.rdoc +2247 -0
  194. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/MIT-LICENSE +21 -0
  195. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/README.rdoc +156 -0
  196. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/Rakefile +38 -0
  197. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/appveyor.yml +21 -0
  198. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/bin/console +7 -0
  199. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/bin/setup +6 -0
  200. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/command_line_usage.rdoc +158 -0
  201. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/Rakefile1 +38 -0
  202. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/Rakefile2 +35 -0
  203. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/a.c +6 -0
  204. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/b.c +6 -0
  205. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/main.c +11 -0
  206. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/glossary.rdoc +42 -0
  207. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/jamis.rb +591 -0
  208. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/proto_rake.rdoc +127 -0
  209. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/rake.1 +156 -0
  210. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/rakefile.rdoc +622 -0
  211. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/rational.rdoc +151 -0
  212. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/exe/rake +27 -0
  213. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake.rb +70 -0
  214. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/application.rb +785 -0
  215. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/backtrace.rb +23 -0
  216. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/clean.rb +77 -0
  217. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/cloneable.rb +16 -0
  218. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/cpu_counter.rb +106 -0
  219. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/default_loader.rb +14 -0
  220. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/dsl_definition.rb +194 -0
  221. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/early_time.rb +21 -0
  222. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/ext/core.rb +25 -0
  223. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/ext/string.rb +175 -0
  224. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_creation_task.rb +24 -0
  225. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_list.rb +434 -0
  226. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_task.rb +46 -0
  227. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_utils.rb +136 -0
  228. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_utils_ext.rb +144 -0
  229. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/invocation_chain.rb +56 -0
  230. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/invocation_exception_mixin.rb +16 -0
  231. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/late_time.rb +17 -0
  232. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/linked_list.rb +111 -0
  233. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/loaders/makefile.rb +53 -0
  234. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/multi_task.rb +49 -0
  235. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/name_space.rb +37 -0
  236. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/packagetask.rb +210 -0
  237. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/phony.rb +15 -0
  238. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/private_reader.rb +20 -0
  239. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/promise.rb +99 -0
  240. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/pseudo_status.rb +29 -0
  241. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/rake_module.rb +38 -0
  242. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/rake_test_loader.rb +21 -0
  243. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/rule_recursion_overflow_error.rb +19 -0
  244. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/scope.rb +42 -0
  245. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb +390 -0
  246. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task_argument_error.rb +7 -0
  247. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task_arguments.rb +108 -0
  248. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task_manager.rb +303 -0
  249. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/tasklib.rb +11 -0
  250. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/testtask.rb +222 -0
  251. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/thread_history_display.rb +48 -0
  252. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/thread_pool.rb +162 -0
  253. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/trace_output.rb +22 -0
  254. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/version.rb +9 -0
  255. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/win32.rb +50 -0
  256. data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/rake.gemspec +39 -0
  257. data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/.gitignore +19 -0
  258. data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/.rspec +3 -0
  259. data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/.travis.yml +24 -0
  260. data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/Changelog.md +49 -0
  261. data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/Gemfile +26 -0
  262. data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/LICENSE.txt +27 -0
  263. data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/README.md +72 -0
  264. data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/Rakefile +16 -0
  265. data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/cucumber.yml +2 -0
  266. data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/features/its.feature +125 -0
  267. data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb +21 -0
  268. data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/features/support/env.rb +23 -0
  269. data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/lib/rspec/its.rb +149 -0
  270. data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/lib/rspec/its/version.rb +5 -0
  271. data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/rspec-its.gemspec +28 -0
  272. data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/script/test_all +20 -0
  273. data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/spec/rspec/its_spec.rb +237 -0
  274. data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/spec/spec_helper.rb +15 -0
  275. data/vendor/bundle/ruby/2.4.0/specifications/fake_ftp-0.1.1.gemspec +20 -0
  276. data/vendor/bundle/ruby/2.4.0/specifications/rake-12.0.0.gemspec +43 -0
  277. data/vendor/bundle/ruby/2.4.0/specifications/rspec-its-1.2.0.gemspec +47 -0
  278. data/version.txt +1 -1
  279. metadata +137 -7
  280. data/2.14.0 +0 -5
@@ -24,7 +24,7 @@ describe Vagrant::Action::Builtin::BoxCheckOutdated do
24
24
  let(:box) do
25
25
  box_dir = iso_env.box3("foo", "1.0", :virtualbox)
26
26
  Vagrant::Box.new("foo", :virtualbox, "1.0", box_dir).tap do |b|
27
- b.stub(has_update?: nil)
27
+ allow(b).to receive(:has_update?).and_return(nil)
28
28
  end
29
29
  end
30
30
 
@@ -35,7 +35,7 @@ describe Vagrant::Action::Builtin::BoxCheckOutdated do
35
35
  end
36
36
 
37
37
  before do
38
- machine.stub(box: box)
38
+ allow(machine).to receive(:box).and_return(box)
39
39
  end
40
40
 
41
41
  context "disabling outdated checking" do
@@ -63,7 +63,7 @@ describe Vagrant::Action::Builtin::BoxCheckOutdated do
63
63
 
64
64
  context "no box" do
65
65
  it "raises an exception if the machine doesn't have a box yet" do
66
- machine.stub(box: nil)
66
+ allow(machine).to receive(:box).and_return(nil)
67
67
 
68
68
  expect(app).to receive(:call).with(env).once
69
69
 
@@ -75,8 +75,8 @@ describe Vagrant::Action::Builtin::BoxCheckOutdated do
75
75
 
76
76
  context "with a non-versioned box" do
77
77
  it "does nothing" do
78
- box.stub(metadata_url: nil)
79
- box.stub(version: "0")
78
+ allow(box).to receive(:metadata_url).and_return(nil)
79
+ allow(box).to receive(:version).and_return("0")
80
80
 
81
81
  expect(app).to receive(:call).once
82
82
  expect(box).to receive(:has_update?).never
@@ -93,7 +93,7 @@ describe Vagrant::Action::Builtin::BoxCheckOutdated do
93
93
 
94
94
  subject.call(env)
95
95
 
96
- expect(env[:box_outdated]).to be_false
96
+ expect(env[:box_outdated]).to be(false)
97
97
  end
98
98
 
99
99
  it "sets env if there is an update" do
@@ -126,7 +126,7 @@ describe Vagrant::Action::Builtin::BoxCheckOutdated do
126
126
 
127
127
  subject.call(env)
128
128
 
129
- expect(env[:box_outdated]).to be_true
129
+ expect(env[:box_outdated]).to be(true)
130
130
  end
131
131
 
132
132
  it "has an update if it is local" do
@@ -138,7 +138,7 @@ describe Vagrant::Action::Builtin::BoxCheckOutdated do
138
138
 
139
139
  subject.call(env)
140
140
 
141
- expect(env[:box_outdated]).to be_true
141
+ expect(env[:box_outdated]).to be(true)
142
142
  end
143
143
 
144
144
  it "does not have a local update if not within constraints" do
@@ -152,7 +152,7 @@ describe Vagrant::Action::Builtin::BoxCheckOutdated do
152
152
 
153
153
  subject.call(env)
154
154
 
155
- expect(env[:box_outdated]).to be_false
155
+ expect(env[:box_outdated]).to be(false)
156
156
  end
157
157
 
158
158
  it "does nothing if metadata download fails" do
@@ -163,7 +163,7 @@ describe Vagrant::Action::Builtin::BoxCheckOutdated do
163
163
 
164
164
  subject.call(env)
165
165
 
166
- expect(env[:box_outdated]).to be_false
166
+ expect(env[:box_outdated]).to be(false)
167
167
  end
168
168
 
169
169
  it "raises error if has_update? errors" do
@@ -24,7 +24,7 @@ describe Vagrant::Action::Builtin::BoxRemove do
24
24
  end
25
25
 
26
26
  it "deletes the box if it is the only option" do
27
- box_collection.stub(all: [["foo", "1.0", :virtualbox]])
27
+ allow(box_collection).to receive(:all).and_return([["foo", "1.0", :virtualbox]])
28
28
 
29
29
  env[:box_name] = "foo"
30
30
 
@@ -41,8 +41,8 @@ describe Vagrant::Action::Builtin::BoxRemove do
41
41
  end
42
42
 
43
43
  it "deletes the box with the specified provider if given" do
44
- box_collection.stub(
45
- all: [
44
+ allow(box_collection).to receive(:all)
45
+ .and_return([
46
46
  ["foo", "1.0", :virtualbox],
47
47
  ["foo", "1.0", :vmware],
48
48
  ])
@@ -63,8 +63,8 @@ describe Vagrant::Action::Builtin::BoxRemove do
63
63
  end
64
64
 
65
65
  it "deletes the box with the specified version if given" do
66
- box_collection.stub(
67
- all: [
66
+ allow(box_collection).to receive(:all)
67
+ .and_return([
68
68
  ["foo", "1.0", :virtualbox],
69
69
  ["foo", "1.1", :virtualbox],
70
70
  ])
@@ -93,7 +93,7 @@ describe Vagrant::Action::Builtin::BoxRemove do
93
93
  "version" => "1.0",
94
94
  }
95
95
 
96
- entry.stub(valid?: valid)
96
+ allow(entry).to receive(:valid?).and_return(valid)
97
97
  end
98
98
  end
99
99
 
@@ -102,8 +102,8 @@ describe Vagrant::Action::Builtin::BoxRemove do
102
102
  before do
103
103
  env[:action_runner] = action_runner
104
104
 
105
- box_collection.stub(
106
- all: [
105
+ allow(box_collection).to receive(:all)
106
+ .and_return([
107
107
  ["foo", "1.0", :virtualbox],
108
108
  ["foo", "1.1", :virtualbox],
109
109
  ])
@@ -154,7 +154,7 @@ describe Vagrant::Action::Builtin::BoxRemove do
154
154
  end
155
155
 
156
156
  it "errors if the box doesn't exist" do
157
- box_collection.stub(all: [])
157
+ allow(box_collection).to receive(:all).and_return([])
158
158
 
159
159
  expect(app).to receive(:call).never
160
160
 
@@ -166,7 +166,7 @@ describe Vagrant::Action::Builtin::BoxRemove do
166
166
  env[:box_name] = "foo"
167
167
  env[:box_provider] = "bar"
168
168
 
169
- box_collection.stub(all: [["foo", "1.0", :virtualbox]])
169
+ allow(box_collection).to receive(:all).and_return([["foo", "1.0", :virtualbox]])
170
170
 
171
171
  expect(app).to receive(:call).never
172
172
 
@@ -177,8 +177,8 @@ describe Vagrant::Action::Builtin::BoxRemove do
177
177
  it "errors if there are multiple providers" do
178
178
  env[:box_name] = "foo"
179
179
 
180
- box_collection.stub(
181
- all: [
180
+ allow(box_collection).to receive(:all)
181
+ .and_return([
182
182
  ["foo", "1.0", :virtualbox],
183
183
  ["foo", "1.0", :vmware],
184
184
  ])
@@ -193,8 +193,8 @@ describe Vagrant::Action::Builtin::BoxRemove do
193
193
  env[:box_name] = "foo"
194
194
  env[:box_provider] = "virtualbox"
195
195
 
196
- box_collection.stub(
197
- all: [
196
+ allow(box_collection).to receive(:all)
197
+ .and_return([
198
198
  ["foo", "1.0", :virtualbox],
199
199
  ["foo", "1.1", :virtualbox],
200
200
  ])
@@ -209,7 +209,7 @@ describe Vagrant::Action::Builtin::BoxRemove do
209
209
  env[:box_name] = "foo"
210
210
  env[:box_version] = "1.1"
211
211
 
212
- box_collection.stub(all: [["foo", "1.0", :virtualbox]])
212
+ allow(box_collection).to receive(:all).and_return([["foo", "1.0", :virtualbox]])
213
213
 
214
214
  expect(app).to receive(:call).never
215
215
 
@@ -47,7 +47,7 @@ describe Vagrant::Action::Builtin::Confirm do
47
47
  end
48
48
  end
49
49
  described_class.new(app, env, message, allowed: ["y", "N"]).call(env)
50
- expect(env[:result]).to be_true
50
+ expect(env[:result]).to be(true)
51
51
  expect(times).to eq(4)
52
52
  end
53
53
  end
@@ -13,8 +13,8 @@ describe Vagrant::Action::Builtin::GracefulHalt do
13
13
  let(:machine_config) do
14
14
  double("machine_config").tap do |top_config|
15
15
  vm_config = double("machien_vm_config")
16
- vm_config.stub(graceful_halt_timeout: 10)
17
- top_config.stub(vm: vm_config)
16
+ allow(vm_config).to receive(:graceful_halt_timeout).and_return(10)
17
+ allow(top_config).to receive(:vm).and_return(vm_config)
18
18
  end
19
19
  end
20
20
  let(:machine_guest) { double("machine_guest") }
@@ -38,7 +38,7 @@ describe Vagrant::Action::Builtin::HandleBox do
38
38
  end
39
39
 
40
40
  it "doesn't do anything if a box exists" do
41
- machine.stub(box: box)
41
+ allow(machine).to receive(:box).and_return(box)
42
42
 
43
43
  expect(action_runner).to receive(:run).never
44
44
  expect(app).to receive(:call).with(env)
@@ -48,13 +48,13 @@ describe Vagrant::Action::Builtin::HandleBox do
48
48
 
49
49
  context "with a box set and no box_url" do
50
50
  before do
51
- machine.stub(box: nil)
51
+ allow(machine).to receive(:box).and_return(nil)
52
52
 
53
53
  machine.config.vm.box = "foo"
54
54
  end
55
55
 
56
56
  it "adds a box that doesn't exist" do
57
- expect(action_runner).to receive(:run).with { |action, opts|
57
+ expect(action_runner).to receive(:run).with(any_args) { |action, opts|
58
58
  expect(opts[:box_name]).to eq(machine.config.vm.box)
59
59
  expect(opts[:box_url]).to eq(machine.config.vm.box)
60
60
  expect(opts[:box_provider]).to eq(:dummy)
@@ -70,7 +70,7 @@ describe Vagrant::Action::Builtin::HandleBox do
70
70
  it "adds a box using any format the provider allows" do
71
71
  machine.provider_options[:box_format] = [:foo, :bar]
72
72
 
73
- expect(action_runner).to receive(:run).with { |action, opts|
73
+ expect(action_runner).to receive(:run).with(any_args) { |action, opts|
74
74
  expect(opts[:box_name]).to eq(machine.config.vm.box)
75
75
  expect(opts[:box_url]).to eq(machine.config.vm.box)
76
76
  expect(opts[:box_provider]).to eq([:foo, :bar])
@@ -86,14 +86,14 @@ describe Vagrant::Action::Builtin::HandleBox do
86
86
 
87
87
  context "with a box and box_url set" do
88
88
  before do
89
- machine.stub(box: nil)
89
+ allow(machine).to receive(:box).and_return(nil)
90
90
 
91
91
  machine.config.vm.box = "foo"
92
92
  machine.config.vm.box_url = "bar"
93
93
  end
94
94
 
95
95
  it "adds a box that doesn't exist" do
96
- expect(action_runner).to receive(:run).with { |action, opts|
96
+ expect(action_runner).to receive(:run).with(any_args) { |action, opts|
97
97
  expect(opts[:box_name]).to eq(machine.config.vm.box)
98
98
  expect(opts[:box_url]).to eq(machine.config.vm.box_url)
99
99
  expect(opts[:box_provider]).to eq(:dummy)
@@ -109,7 +109,7 @@ describe Vagrant::Action::Builtin::HandleBox do
109
109
 
110
110
  context "with a box with a checksum set" do
111
111
  before do
112
- machine.stub(box: nil)
112
+ allow(machine).to receive(:box).and_return(nil)
113
113
 
114
114
  machine.config.vm.box = "foo"
115
115
  machine.config.vm.box_url = "bar"
@@ -118,7 +118,7 @@ describe Vagrant::Action::Builtin::HandleBox do
118
118
  end
119
119
 
120
120
  it "adds a box that doesn't exist and maps checksum options correctly" do
121
- expect(action_runner).to receive(:run).with { |action, opts|
121
+ expect(action_runner).to receive(:run).with(any_args) { |action, opts|
122
122
  expect(opts[:box_name]).to eq(machine.config.vm.box)
123
123
  expect(opts[:box_url]).to eq(machine.config.vm.box_url)
124
124
  expect(opts[:box_provider]).to eq(:dummy)
@@ -26,7 +26,7 @@ describe Vagrant::Action::Builtin::HandleForwardedPortCollisions do
26
26
 
27
27
  let(:machine_config) do
28
28
  double("machine_config").tap do |config|
29
- config.stub(vm: vm_config)
29
+ allow(config).to receive(:vm).and_return(vm_config)
30
30
  end
31
31
  end
32
32
 
@@ -16,7 +16,7 @@ describe Vagrant::Action::Builtin::IsEnvSet do
16
16
  expect(app).to receive(:call).with(env)
17
17
 
18
18
  subject.call(env)
19
- expect(env[:result]).to be_true
19
+ expect(env[:result]).to be(true)
20
20
  end
21
21
 
22
22
  it "sets result to false if it isn't set" do
@@ -25,7 +25,7 @@ describe Vagrant::Action::Builtin::IsEnvSet do
25
25
  expect(app).to receive(:call).with(env)
26
26
 
27
27
  subject.call(env)
28
- expect(env[:result]).to be_false
28
+ expect(env[:result]).to be(false)
29
29
  end
30
30
  end
31
31
  end
@@ -16,36 +16,36 @@ describe Vagrant::Action::Builtin::IsState do
16
16
 
17
17
  describe "#call" do
18
18
  it "sets result to false if is proper state" do
19
- state.stub(id: :foo)
19
+ allow(state).to receive(:id).and_return(:foo)
20
20
 
21
21
  subject = described_class.new(app, env, :bar)
22
22
 
23
23
  expect(app).to receive(:call).with(env)
24
24
 
25
25
  subject.call(env)
26
- expect(env[:result]).to be_false
26
+ expect(env[:result]).to be(false)
27
27
  end
28
28
 
29
29
  it "sets result to true if is proper state" do
30
- state.stub(id: :foo)
30
+ allow(state).to receive(:id).and_return(:foo)
31
31
 
32
32
  subject = described_class.new(app, env, :foo)
33
33
 
34
34
  expect(app).to receive(:call).with(env)
35
35
 
36
36
  subject.call(env)
37
- expect(env[:result]).to be_true
37
+ expect(env[:result]).to be(true)
38
38
  end
39
39
 
40
40
  it "inverts the result if specified" do
41
- state.stub(id: :foo)
41
+ allow(state).to receive(:id).and_return(:foo)
42
42
 
43
43
  subject = described_class.new(app, env, :foo, invert: true)
44
44
 
45
45
  expect(app).to receive(:call).with(env)
46
46
 
47
47
  subject.call(env)
48
- expect(env[:result]).to be_false
48
+ expect(env[:result]).to be(false)
49
49
  end
50
50
  end
51
51
  end
@@ -24,7 +24,7 @@ describe Vagrant::Action::Builtin::MixinSyncedFolders do
24
24
 
25
25
  let(:machine_config) do
26
26
  double("machine_config").tap do |top_config|
27
- top_config.stub(vm: vm_config)
27
+ allow(top_config).to receive(:vm).and_return(vm_config)
28
28
  end
29
29
  end
30
30
 
@@ -98,8 +98,8 @@ describe Vagrant::Action::Builtin::MixinSyncedFolders do
98
98
  plugins[:default] = [impl(true, "default"), 10]
99
99
  plugins[:nfs] = [impl(true, "nfs"), 5]
100
100
 
101
- subject.stub(plugins: plugins)
102
- vm_config.stub(synced_folders: folders)
101
+ allow(subject).to receive(:plugins).and_return(plugins)
102
+ allow(vm_config).to receive(:synced_folders).and_return(folders)
103
103
  end
104
104
 
105
105
  it "should raise exception if bad type is given" do
@@ -133,7 +133,7 @@ describe Vagrant::Action::Builtin::MixinSyncedFolders do
133
133
 
134
134
  other_folders = { "bar" => {} }
135
135
  other = double("config")
136
- other.stub(synced_folders: other_folders)
136
+ allow(other).to receive(:synced_folders).and_return(other_folders)
137
137
 
138
138
  result = subject.synced_folders(machine, config: other)
139
139
  expect(result.length).to eq(1)
@@ -147,7 +147,7 @@ describe Vagrant::Action::Builtin::MixinSyncedFolders do
147
147
  folders["root"] = { type: "unusable" }
148
148
 
149
149
  expect { subject.synced_folders(machine) }.
150
- to raise_error
150
+ to raise_error(RuntimeError)
151
151
  end
152
152
 
153
153
  it "should ignore disabled folders" do
@@ -201,7 +201,7 @@ describe Vagrant::Action::Builtin::MixinSyncedFolders do
201
201
  it "should be able to save and retrieve cached versions" do
202
202
  other_folders = {}
203
203
  other = double("config")
204
- other.stub(synced_folders: other_folders)
204
+ allow(other).to receive(:synced_folders).and_return(other_folders)
205
205
 
206
206
  other_folders["foo"] = { type: "default" }
207
207
  result = subject.synced_folders(machine, config: other)
@@ -22,7 +22,7 @@ describe Vagrant::Action::Builtin::Provision do
22
22
 
23
23
  let(:machine_config) do
24
24
  double("machine_config").tap do |config|
25
- config.stub(vm: vm_config)
25
+ allow(config).to receive(:vm).and_return(vm_config)
26
26
  end
27
27
  end
28
28
 
@@ -15,7 +15,7 @@ describe Vagrant::Action::Builtin::ProvisionerCleanup do
15
15
 
16
16
  let(:machine_config) do
17
17
  double("machine_config").tap do |config|
18
- config.stub(vm: vm_config)
18
+ allow(config).to receive(:vm).and_return(vm_config)
19
19
  end
20
20
  end
21
21
 
@@ -16,7 +16,7 @@ describe Vagrant::Action::Builtin::SyncedFolderCleanup do
16
16
 
17
17
  let(:machine_config) do
18
18
  double("machine_config").tap do |top_config|
19
- top_config.stub(vm: vm_config)
19
+ allow(top_config).to receive(:vm).and_return(vm_config)
20
20
  end
21
21
  end
22
22
 
@@ -55,8 +55,8 @@ describe Vagrant::Action::Builtin::SyncedFolderCleanup do
55
55
  env[:machine] = Object.new
56
56
  env[:root_path] = Pathname.new(Dir.mktmpdir("vagrant-test-synced-folder-cleanup-call"))
57
57
 
58
- subject.stub(plugins: plugins)
59
- subject.stub(synced_folders: synced_folders)
58
+ allow(subject).to receive(:plugins).and_return(plugins)
59
+ allow(subject).to receive(:synced_folders).and_return(synced_folders)
60
60
  end
61
61
 
62
62
  after do
@@ -131,9 +131,9 @@ describe Vagrant::Action::Builtin::SyncedFolderCleanup do
131
131
 
132
132
  subject.call(env)
133
133
 
134
- expect(trackers[0].clean).to be_true
135
- expect(trackers[1].clean).to be_true
136
- expect(trackers[2].clean).to be_true
134
+ expect(trackers[0].clean).to be(true)
135
+ expect(trackers[1].clean).to be(true)
136
+ expect(trackers[2].clean).to be(true)
137
137
  end
138
138
  end
139
139
  end
@@ -19,7 +19,7 @@ describe Vagrant::Action::Builtin::SyncedFolders do
19
19
 
20
20
  let(:machine_config) do
21
21
  double("machine_config").tap do |top_config|
22
- top_config.stub(vm: vm_config)
22
+ allow(top_config).to receive(:vm).and_return(vm_config)
23
23
  end
24
24
  end
25
25
 
@@ -42,8 +42,8 @@ describe Vagrant::Action::Builtin::SyncedFolders do
42
42
  plugins[:nfs] = [impl(true, "nfs"), 5]
43
43
 
44
44
  env[:root_path] = Pathname.new(Dir.mktmpdir("vagrant-test-synced-folders-call"))
45
- subject.stub(plugins: plugins)
46
- subject.stub(synced_folders: synced_folders)
45
+ allow(subject).to receive(:plugins).and_return(plugins)
46
+ allow(subject).to receive(:synced_folders).and_return(synced_folders)
47
47
  allow(subject).to receive(:save_synced_folders)
48
48
  end
49
49