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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +36 -0
- data/Gemfile.lock +10 -6
- data/contrib/bash/completion.sh +1 -1
- data/contrib/sudoers/linux-ubuntu +3 -4
- data/lib/vagrant/errors.rb +8 -0
- data/lib/vagrant/machine.rb +2 -0
- data/lib/vagrant/util/platform.rb +1 -1
- data/lib/vagrant/util/powershell.rb +42 -13
- data/lib/vagrant/util/safe_exec.rb +13 -2
- data/lib/vagrant/util/ssh.rb +11 -1
- data/plugins/commands/box/command/update.rb +12 -7
- data/plugins/commands/login/client.rb +15 -6
- data/plugins/commands/login/command.rb +13 -3
- data/plugins/commands/up/command.rb +9 -0
- data/plugins/commands/validate/command.rb +4 -4
- data/plugins/guests/darwin/cap/shell_expand_guest_path.rb +2 -2
- data/plugins/guests/freebsd/cap/configure_networks.rb +1 -1
- data/plugins/guests/freebsd/cap/shell_expand_guest_path.rb +2 -2
- data/plugins/guests/linux/cap/shell_expand_guest_path.rb +2 -2
- data/plugins/guests/netbsd/cap/shell_expand_guest_path.rb +2 -2
- data/plugins/guests/openbsd/cap/shell_expand_guest_path.rb +2 -2
- data/plugins/guests/windows/cap/public_key.rb +21 -45
- data/plugins/kernel_v2/config/ssh_connect.rb +3 -0
- data/plugins/providers/docker/config.rb +4 -0
- data/plugins/providers/docker/driver/compose.rb +11 -4
- data/plugins/providers/hyperv/action/wait_for_ip_address.rb +15 -11
- data/plugins/providers/hyperv/scripts/get_network_config.ps1 +24 -9
- data/plugins/providers/virtualbox/action/prepare_nfs_settings.rb +18 -0
- data/plugins/provisioners/ansible/provisioner/host.rb +1 -1
- data/plugins/provisioners/chef/cap/debian/chef_install.rb +2 -2
- data/plugins/provisioners/chef/cap/freebsd/chef_install.rb +2 -2
- data/plugins/provisioners/chef/cap/omnios/chef_install.rb +2 -2
- data/plugins/provisioners/chef/cap/redhat/chef_install.rb +2 -2
- data/plugins/provisioners/chef/cap/suse/chef_install.rb +2 -2
- data/plugins/provisioners/chef/cap/windows/chef_install.rb +2 -2
- data/plugins/provisioners/chef/config/base.rb +17 -0
- data/plugins/provisioners/chef/config/chef_zero.rb +7 -0
- data/plugins/provisioners/chef/installer.rb +8 -7
- data/plugins/provisioners/chef/omnibus.rb +4 -6
- data/plugins/provisioners/chef/provisioner/base.rb +1 -0
- data/plugins/provisioners/chef/provisioner/chef_solo.rb +2 -1
- data/plugins/provisioners/file/provisioner.rb +18 -2
- data/plugins/provisioners/puppet/provisioner/puppet.rb +0 -2
- data/plugins/provisioners/salt/bootstrap-salt.sh +9 -5
- data/plugins/provisioners/shell/provisioner.rb +1 -1
- data/plugins/synced_folders/rsync/command/rsync_auto.rb +6 -1
- data/plugins/synced_folders/rsync/helper.rb +10 -0
- data/templates/locales/en.yml +27 -1
- data/templates/locales/providers_docker.yml +2 -0
- data/test/unit/base.rb +1 -3
- data/test/unit/plugins/commands/box/command/add_test.rb +3 -3
- data/test/unit/plugins/commands/box/command/remove_test.rb +6 -6
- data/test/unit/plugins/commands/box/command/repackage_test.rb +2 -4
- data/test/unit/plugins/commands/box/command/update_test.rb +36 -14
- data/test/unit/plugins/commands/init/command_test.rb +1 -1
- data/test/unit/plugins/commands/list-commands/command_test.rb +2 -2
- data/test/unit/plugins/commands/login/client_test.rb +5 -1
- data/test/unit/plugins/commands/package/command_test.rb +1 -1
- data/test/unit/plugins/commands/plugin/action/expunge_plugins_test.rb +1 -1
- data/test/unit/plugins/commands/plugin/action/install_gem_test.rb +3 -3
- data/test/unit/plugins/commands/plugin/action/plugin_exists_check_test.rb +3 -3
- data/test/unit/plugins/commands/plugin/action/uninstall_plugin_test.rb +1 -1
- data/test/unit/plugins/commands/plugin/action/update_gems_test.rb +2 -2
- data/test/unit/plugins/commands/port/command_test.rb +3 -3
- data/test/unit/plugins/commands/push/command_test.rb +1 -1
- data/test/unit/plugins/commands/snapshot/command/list_test.rb +2 -3
- data/test/unit/plugins/commands/ssh_config/command_test.rb +1 -1
- data/test/unit/plugins/commands/up/command_test.rb +69 -2
- data/test/unit/plugins/commands/validate/command_test.rb +47 -1
- data/test/unit/plugins/communicators/ssh/communicator_test.rb +5 -5
- data/test/unit/plugins/communicators/winrm/communicator_test.rb +6 -6
- data/test/unit/plugins/communicators/winrm/helper_test.rb +24 -23
- data/test/unit/plugins/communicators/winssh/communicator_test.rb +5 -5
- data/test/unit/plugins/guests/darwin/cap/shell_expand_guest_path_test.rb +43 -0
- data/test/unit/plugins/guests/freebsd/cap/configure_networks_test.rb +1 -1
- data/test/unit/plugins/guests/freebsd/cap/shell_expand_guest_path_test.rb +44 -0
- data/test/unit/plugins/guests/linux/cap/shell_expand_guest_path_test.rb +43 -0
- data/test/unit/plugins/guests/netbsd/cap/shell_expand_guest_path_test.rb +43 -0
- data/test/unit/plugins/guests/omnios/cap/mount_nfs_folder_test.rb +1 -3
- data/test/unit/plugins/guests/openbsd/cap/shell_expand_guest_path_test.rb +43 -0
- data/test/unit/plugins/guests/smartos/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/smartos/cap/configure_networks_test.rb +2 -2
- data/test/unit/plugins/guests/smartos/cap/halt_test.rb +2 -2
- data/test/unit/plugins/guests/smartos/cap/insert_public_key_test.rb +1 -1
- data/test/unit/plugins/guests/smartos/cap/mount_nfs_test.rb +2 -2
- data/test/unit/plugins/guests/smartos/cap/rsync_test.rb +2 -2
- data/test/unit/plugins/guests/windows/cap/insert_public_key_test.rb +2 -2
- data/test/unit/plugins/guests/windows/cap/remove_public_key_test.rb +4 -3
- data/test/unit/plugins/guests/windows/config_test.rb +1 -1
- data/test/unit/plugins/guests/windows/guest_network_test.rb +2 -2
- data/test/unit/plugins/hosts/linux/cap/nfs_test.rb +2 -0
- data/test/unit/plugins/kernel_v2/config/push_test.rb +1 -1
- data/test/unit/plugins/kernel_v2/config/vm_test.rb +7 -7
- data/test/unit/plugins/providers/docker/action/create_test.rb +1 -1
- data/test/unit/plugins/providers/docker/command/exec_test.rb +1 -1
- data/test/unit/plugins/providers/docker/config_test.rb +23 -4
- data/test/unit/plugins/providers/docker/driver_compose_test.rb +60 -30
- data/test/unit/plugins/providers/docker/driver_test.rb +31 -31
- data/test/unit/plugins/providers/docker/synced_folder_test.rb +3 -3
- data/test/unit/plugins/providers/hyperv/provider_test.rb +19 -19
- data/test/unit/plugins/providers/virtualbox/action/network_fix_ipv6_test.rb +2 -2
- data/test/unit/plugins/providers/virtualbox/action/network_test.rb +1 -1
- data/test/unit/plugins/providers/virtualbox/action/prepare_nfs_settings_test.rb +34 -8
- data/test/unit/plugins/providers/virtualbox/action/prepare_nfs_valid_ids_test.rb +3 -3
- data/test/unit/plugins/providers/virtualbox/cap_test.rb +2 -2
- data/test/unit/plugins/providers/virtualbox/config_test.rb +6 -6
- data/test/unit/plugins/providers/virtualbox/synced_folder_test.rb +6 -8
- data/test/unit/plugins/provisioners/ansible/config/guest_test.rb +1 -1
- data/test/unit/plugins/provisioners/ansible/config/host_test.rb +4 -4
- data/test/unit/plugins/provisioners/ansible/config/shared.rb +2 -2
- data/test/unit/plugins/provisioners/ansible/provisioner_test.rb +165 -157
- data/test/unit/plugins/provisioners/chef/command_builder_test.rb +2 -2
- data/test/unit/plugins/provisioners/chef/config/base_test.rb +13 -0
- data/test/unit/plugins/provisioners/chef/config/chef_zero_test.rb +11 -0
- data/test/unit/plugins/provisioners/chef/omnibus_test.rb +17 -7
- data/test/unit/plugins/provisioners/docker/config_test.rb +2 -1
- data/test/unit/plugins/provisioners/docker/provisioner_test.rb +13 -13
- data/test/unit/plugins/provisioners/file/provisioner_test.rb +32 -14
- data/test/unit/plugins/provisioners/puppet/provisioner/puppet_test.rb +51 -0
- data/test/unit/plugins/provisioners/salt/provisioner_test.rb +5 -5
- data/test/unit/plugins/provisioners/shell/provisioner_test.rb +35 -4
- data/test/unit/plugins/pushes/ftp/adapter_test.rb +1 -0
- data/test/unit/plugins/synced_folders/nfs/action_cleanup_test.rb +1 -1
- data/test/unit/plugins/synced_folders/nfs/config_test.rb +1 -1
- data/test/unit/plugins/synced_folders/rsync/command/rsync_auto_test.rb +44 -12
- data/test/unit/plugins/synced_folders/rsync/command/rsync_test.rb +5 -5
- data/test/unit/plugins/synced_folders/rsync/helper_test.rb +47 -29
- data/test/unit/plugins/synced_folders/rsync/synced_folder_test.rb +5 -5
- data/test/unit/vagrant/action/builtin/box_add_test.rb +27 -27
- data/test/unit/vagrant/action/builtin/box_check_outdated_test.rb +10 -10
- data/test/unit/vagrant/action/builtin/box_remove_test.rb +15 -15
- data/test/unit/vagrant/action/builtin/confirm_test.rb +1 -1
- data/test/unit/vagrant/action/builtin/graceful_halt_test.rb +2 -2
- data/test/unit/vagrant/action/builtin/handle_box_test.rb +8 -8
- data/test/unit/vagrant/action/builtin/handle_forwarded_port_collisions_test.rb +1 -1
- data/test/unit/vagrant/action/builtin/is_env_set_test.rb +2 -2
- data/test/unit/vagrant/action/builtin/is_state_test.rb +6 -6
- data/test/unit/vagrant/action/builtin/mixin_synced_folders_test.rb +6 -6
- data/test/unit/vagrant/action/builtin/provision_test.rb +1 -1
- data/test/unit/vagrant/action/builtin/provisioner_cleanup_test.rb +1 -1
- data/test/unit/vagrant/action/builtin/synced_folder_cleanup_test.rb +6 -6
- data/test/unit/vagrant/action/builtin/synced_folders_test.rb +3 -3
- data/test/unit/vagrant/batch_action_test.rb +2 -2
- data/test/unit/vagrant/box_collection_test.rb +1 -1
- data/test/unit/vagrant/box_test.rb +6 -6
- data/test/unit/vagrant/capability_host_test.rb +3 -3
- data/test/unit/vagrant/cli_test.rb +3 -3
- data/test/unit/vagrant/environment_test.rb +21 -20
- data/test/unit/vagrant/guest_test.rb +7 -7
- data/test/unit/vagrant/machine_index_test.rb +4 -4
- data/test/unit/vagrant/machine_test.rb +28 -17
- data/test/unit/vagrant/plugin/manager_test.rb +12 -12
- data/test/unit/vagrant/plugin/state_file_test.rb +2 -2
- data/test/unit/vagrant/plugin/v1/command_test.rb +9 -8
- data/test/unit/vagrant/plugin/v2/command_test.rb +54 -43
- data/test/unit/vagrant/plugin/v2/plugin_test.rb +4 -3
- data/test/unit/vagrant/plugin/v2/provider_test.rb +3 -3
- data/test/unit/vagrant/shared_helpers_test.rb +6 -6
- data/test/unit/vagrant/ui_test.rb +21 -21
- data/test/unit/vagrant/util/downloader_test.rb +7 -7
- data/test/unit/vagrant/util/ssh_test.rb +41 -5
- data/test/unit/vagrant/util/subprocess_test.rb +7 -7
- data/test/unit/vagrant_test.rb +9 -9
- data/vagrant.gemspec +3 -2
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/vagrant-spec.gemspec +1 -1
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/.gitignore +7 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/.rspec +2 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/.travis.yml +5 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/CONTRIBUTORS.md +19 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Gemfile +12 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Gemfile.lock +44 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Guardfile +10 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/README.md +134 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Rakefile +10 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/fake_ftp.gemspec +22 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp.rb +5 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp/file.rb +34 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp/server.rb +340 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp/version.rb +3 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/fixtures/invisible_bike.jpg +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/fixtures/text_file.txt +1 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/functional/server_spec.rb +468 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/integration/server_spec.rb +81 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/models/fake_ftp/file_spec.rb +102 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/models/fake_ftp/server_spec.rb +76 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/spec_helper.rb +18 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/.gitignore +14 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/.rubocop.yml +57 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/.travis.yml +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/CONTRIBUTING.rdoc +36 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/Gemfile +3 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/History.rdoc +2247 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/README.rdoc +156 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/Rakefile +38 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/appveyor.yml +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/bin/console +7 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/bin/setup +6 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/command_line_usage.rdoc +158 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/Rakefile1 +38 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/Rakefile2 +35 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/a.c +6 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/b.c +6 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/main.c +11 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/glossary.rdoc +42 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/jamis.rb +591 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/proto_rake.rdoc +127 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/rake.1 +156 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/rakefile.rdoc +622 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/rational.rdoc +151 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/exe/rake +27 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake.rb +70 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/application.rb +785 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/backtrace.rb +23 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/clean.rb +77 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/cloneable.rb +16 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/cpu_counter.rb +106 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/default_loader.rb +14 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/dsl_definition.rb +194 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/early_time.rb +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/ext/core.rb +25 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/ext/string.rb +175 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_creation_task.rb +24 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_list.rb +434 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_task.rb +46 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_utils.rb +136 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_utils_ext.rb +144 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/invocation_chain.rb +56 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/invocation_exception_mixin.rb +16 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/late_time.rb +17 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/linked_list.rb +111 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/loaders/makefile.rb +53 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/multi_task.rb +49 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/name_space.rb +37 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/packagetask.rb +210 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/phony.rb +15 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/private_reader.rb +20 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/promise.rb +99 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/pseudo_status.rb +29 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/rake_module.rb +38 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/rake_test_loader.rb +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/rule_recursion_overflow_error.rb +19 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/scope.rb +42 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb +390 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task_argument_error.rb +7 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task_arguments.rb +108 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task_manager.rb +303 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/tasklib.rb +11 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/testtask.rb +222 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/thread_history_display.rb +48 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/thread_pool.rb +162 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/trace_output.rb +22 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/version.rb +9 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/win32.rb +50 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/rake.gemspec +39 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/.gitignore +19 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/.rspec +3 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/.travis.yml +24 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/Changelog.md +49 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/Gemfile +26 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/LICENSE.txt +27 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/README.md +72 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/Rakefile +16 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/cucumber.yml +2 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/features/its.feature +125 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/features/support/env.rb +23 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/lib/rspec/its.rb +149 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/lib/rspec/its/version.rb +5 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/rspec-its.gemspec +28 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/script/test_all +20 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/spec/rspec/its_spec.rb +237 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/spec/spec_helper.rb +15 -0
- data/vendor/bundle/ruby/2.4.0/specifications/fake_ftp-0.1.1.gemspec +20 -0
- data/vendor/bundle/ruby/2.4.0/specifications/rake-12.0.0.gemspec +43 -0
- data/vendor/bundle/ruby/2.4.0/specifications/rspec-its-1.2.0.gemspec +47 -0
- data/version.txt +1 -1
- metadata +137 -7
- data/2.14.0 +0 -5
@@ -0,0 +1,29 @@
|
|
1
|
+
module Rake
|
2
|
+
|
3
|
+
##
|
4
|
+
# Exit status class for times the system just gives us a nil.
|
5
|
+
class PseudoStatus # :nodoc: all
|
6
|
+
attr_reader :exitstatus
|
7
|
+
|
8
|
+
def initialize(code=0)
|
9
|
+
@exitstatus = code
|
10
|
+
end
|
11
|
+
|
12
|
+
def to_i
|
13
|
+
@exitstatus << 8
|
14
|
+
end
|
15
|
+
|
16
|
+
def >>(n)
|
17
|
+
to_i >> n
|
18
|
+
end
|
19
|
+
|
20
|
+
def stopped?
|
21
|
+
false
|
22
|
+
end
|
23
|
+
|
24
|
+
def exited?
|
25
|
+
true
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require "rake/application"
|
2
|
+
|
3
|
+
module Rake
|
4
|
+
|
5
|
+
class << self
|
6
|
+
# Current Rake Application
|
7
|
+
def application
|
8
|
+
@application ||= Rake::Application.new
|
9
|
+
end
|
10
|
+
|
11
|
+
# Set the current Rake application object.
|
12
|
+
def application=(app)
|
13
|
+
@application = app
|
14
|
+
end
|
15
|
+
|
16
|
+
def suggested_thread_count # :nodoc:
|
17
|
+
@cpu_count ||= Rake::CpuCounter.count
|
18
|
+
@cpu_count + 4
|
19
|
+
end
|
20
|
+
|
21
|
+
# Return the original directory where the Rake application was started.
|
22
|
+
def original_dir
|
23
|
+
application.original_dir
|
24
|
+
end
|
25
|
+
|
26
|
+
# Load a rakefile.
|
27
|
+
def load_rakefile(path)
|
28
|
+
load(path)
|
29
|
+
end
|
30
|
+
|
31
|
+
# Add files to the rakelib list
|
32
|
+
def add_rakelib(*files)
|
33
|
+
application.options.rakelib ||= []
|
34
|
+
application.options.rakelib.concat(files)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require "rake"
|
2
|
+
|
3
|
+
# Load the test files from the command line.
|
4
|
+
argv = ARGV.select do |argument|
|
5
|
+
case argument
|
6
|
+
when /^-/ then
|
7
|
+
argument
|
8
|
+
when /\*/ then
|
9
|
+
FileList[argument].to_a.each do |file|
|
10
|
+
require File.expand_path file
|
11
|
+
end
|
12
|
+
|
13
|
+
false
|
14
|
+
else
|
15
|
+
require File.expand_path argument
|
16
|
+
|
17
|
+
false
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
ARGV.replace argv
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Rake
|
2
|
+
|
3
|
+
# Error indicating a recursion overflow error in task selection.
|
4
|
+
class RuleRecursionOverflowError < StandardError
|
5
|
+
def initialize(*args)
|
6
|
+
super
|
7
|
+
@targets = []
|
8
|
+
end
|
9
|
+
|
10
|
+
def add_target(target)
|
11
|
+
@targets << target
|
12
|
+
end
|
13
|
+
|
14
|
+
def message
|
15
|
+
super + ": [" + @targets.reverse.join(" => ") + "]"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module Rake
|
2
|
+
class Scope < LinkedList # :nodoc: all
|
3
|
+
|
4
|
+
# Path for the scope.
|
5
|
+
def path
|
6
|
+
map(&:to_s).reverse.join(":")
|
7
|
+
end
|
8
|
+
|
9
|
+
# Path for the scope + the named path.
|
10
|
+
def path_with_task_name(task_name)
|
11
|
+
"#{path}:#{task_name}"
|
12
|
+
end
|
13
|
+
|
14
|
+
# Trim +n+ innermost scope levels from the scope. In no case will
|
15
|
+
# this trim beyond the toplevel scope.
|
16
|
+
def trim(n)
|
17
|
+
result = self
|
18
|
+
while n > 0 && ! result.empty?
|
19
|
+
result = result.tail
|
20
|
+
n -= 1
|
21
|
+
end
|
22
|
+
result
|
23
|
+
end
|
24
|
+
|
25
|
+
# Scope lists always end with an EmptyScope object. See Null
|
26
|
+
# Object Pattern)
|
27
|
+
class EmptyScope < EmptyLinkedList
|
28
|
+
@parent = Scope
|
29
|
+
|
30
|
+
def path
|
31
|
+
""
|
32
|
+
end
|
33
|
+
|
34
|
+
def path_with_task_name(task_name)
|
35
|
+
task_name
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
# Singleton null object for an empty scope.
|
40
|
+
EMPTY = EmptyScope.new
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,390 @@
|
|
1
|
+
require "rake/invocation_exception_mixin"
|
2
|
+
|
3
|
+
module Rake
|
4
|
+
|
5
|
+
##
|
6
|
+
# A Task is the basic unit of work in a Rakefile. Tasks have associated
|
7
|
+
# actions (possibly more than one) and a list of prerequisites. When
|
8
|
+
# invoked, a task will first ensure that all of its prerequisites have an
|
9
|
+
# opportunity to run and then it will execute its own actions.
|
10
|
+
#
|
11
|
+
# Tasks are not usually created directly using the new method, but rather
|
12
|
+
# use the +file+ and +task+ convenience methods.
|
13
|
+
#
|
14
|
+
class Task
|
15
|
+
# List of prerequisites for a task.
|
16
|
+
attr_reader :prerequisites
|
17
|
+
|
18
|
+
# List of actions attached to a task.
|
19
|
+
attr_reader :actions
|
20
|
+
|
21
|
+
# Application owning this task.
|
22
|
+
attr_accessor :application
|
23
|
+
|
24
|
+
# Array of nested namespaces names used for task lookup by this task.
|
25
|
+
attr_reader :scope
|
26
|
+
|
27
|
+
# File/Line locations of each of the task definitions for this
|
28
|
+
# task (only valid if the task was defined with the detect
|
29
|
+
# location option set).
|
30
|
+
attr_reader :locations
|
31
|
+
|
32
|
+
# Has this task already been invoked? Already invoked tasks
|
33
|
+
# will be skipped unless you reenable them.
|
34
|
+
attr_reader :already_invoked
|
35
|
+
|
36
|
+
# Return task name
|
37
|
+
def to_s
|
38
|
+
name
|
39
|
+
end
|
40
|
+
|
41
|
+
def inspect # :nodoc:
|
42
|
+
"<#{self.class} #{name} => [#{prerequisites.join(', ')}]>"
|
43
|
+
end
|
44
|
+
|
45
|
+
# List of sources for task.
|
46
|
+
attr_writer :sources
|
47
|
+
def sources
|
48
|
+
if defined?(@sources)
|
49
|
+
@sources
|
50
|
+
else
|
51
|
+
prerequisites
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# List of prerequisite tasks
|
56
|
+
def prerequisite_tasks
|
57
|
+
prerequisites.map { |pre| lookup_prerequisite(pre) }
|
58
|
+
end
|
59
|
+
|
60
|
+
def lookup_prerequisite(prerequisite_name) # :nodoc:
|
61
|
+
scoped_prerequisite_task = application[prerequisite_name, @scope]
|
62
|
+
if scoped_prerequisite_task == self
|
63
|
+
unscoped_prerequisite_task = application[prerequisite_name]
|
64
|
+
end
|
65
|
+
unscoped_prerequisite_task || scoped_prerequisite_task
|
66
|
+
end
|
67
|
+
private :lookup_prerequisite
|
68
|
+
|
69
|
+
# List of all unique prerequisite tasks including prerequisite tasks'
|
70
|
+
# prerequisites.
|
71
|
+
# Includes self when cyclic dependencies are found.
|
72
|
+
def all_prerequisite_tasks
|
73
|
+
seen = {}
|
74
|
+
collect_prerequisites(seen)
|
75
|
+
seen.values
|
76
|
+
end
|
77
|
+
|
78
|
+
def collect_prerequisites(seen) # :nodoc:
|
79
|
+
prerequisite_tasks.each do |pre|
|
80
|
+
next if seen[pre.name]
|
81
|
+
seen[pre.name] = pre
|
82
|
+
pre.collect_prerequisites(seen)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
protected :collect_prerequisites
|
86
|
+
|
87
|
+
# First source from a rule (nil if no sources)
|
88
|
+
def source
|
89
|
+
sources.first
|
90
|
+
end
|
91
|
+
|
92
|
+
# Create a task named +task_name+ with no actions or prerequisites. Use
|
93
|
+
# +enhance+ to add actions and prerequisites.
|
94
|
+
def initialize(task_name, app)
|
95
|
+
@name = task_name.to_s
|
96
|
+
@prerequisites = []
|
97
|
+
@actions = []
|
98
|
+
@already_invoked = false
|
99
|
+
@comments = []
|
100
|
+
@lock = Monitor.new
|
101
|
+
@application = app
|
102
|
+
@scope = app.current_scope
|
103
|
+
@arg_names = nil
|
104
|
+
@locations = []
|
105
|
+
end
|
106
|
+
|
107
|
+
# Enhance a task with prerequisites or actions. Returns self.
|
108
|
+
def enhance(deps=nil, &block)
|
109
|
+
@prerequisites |= deps if deps
|
110
|
+
@actions << block if block_given?
|
111
|
+
self
|
112
|
+
end
|
113
|
+
|
114
|
+
# Name of the task, including any namespace qualifiers.
|
115
|
+
def name
|
116
|
+
@name.to_s
|
117
|
+
end
|
118
|
+
|
119
|
+
# Name of task with argument list description.
|
120
|
+
def name_with_args # :nodoc:
|
121
|
+
if arg_description
|
122
|
+
"#{name}#{arg_description}"
|
123
|
+
else
|
124
|
+
name
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
# Argument description (nil if none).
|
129
|
+
def arg_description # :nodoc:
|
130
|
+
@arg_names ? "[#{arg_names.join(',')}]" : nil
|
131
|
+
end
|
132
|
+
|
133
|
+
# Name of arguments for this task.
|
134
|
+
def arg_names
|
135
|
+
@arg_names || []
|
136
|
+
end
|
137
|
+
|
138
|
+
# Reenable the task, allowing its tasks to be executed if the task
|
139
|
+
# is invoked again.
|
140
|
+
def reenable
|
141
|
+
@already_invoked = false
|
142
|
+
end
|
143
|
+
|
144
|
+
# Clear the existing prerequisites, actions, comments, and arguments of a rake task.
|
145
|
+
def clear
|
146
|
+
clear_prerequisites
|
147
|
+
clear_actions
|
148
|
+
clear_comments
|
149
|
+
clear_args
|
150
|
+
self
|
151
|
+
end
|
152
|
+
|
153
|
+
# Clear the existing prerequisites of a rake task.
|
154
|
+
def clear_prerequisites
|
155
|
+
prerequisites.clear
|
156
|
+
self
|
157
|
+
end
|
158
|
+
|
159
|
+
# Clear the existing actions on a rake task.
|
160
|
+
def clear_actions
|
161
|
+
actions.clear
|
162
|
+
self
|
163
|
+
end
|
164
|
+
|
165
|
+
# Clear the existing comments on a rake task.
|
166
|
+
def clear_comments
|
167
|
+
@comments = []
|
168
|
+
self
|
169
|
+
end
|
170
|
+
|
171
|
+
# Clear the existing arguments on a rake task.
|
172
|
+
def clear_args
|
173
|
+
@arg_names = nil
|
174
|
+
self
|
175
|
+
end
|
176
|
+
|
177
|
+
# Invoke the task if it is needed. Prerequisites are invoked first.
|
178
|
+
def invoke(*args)
|
179
|
+
task_args = TaskArguments.new(arg_names, args)
|
180
|
+
invoke_with_call_chain(task_args, InvocationChain::EMPTY)
|
181
|
+
end
|
182
|
+
|
183
|
+
# Same as invoke, but explicitly pass a call chain to detect
|
184
|
+
# circular dependencies.
|
185
|
+
def invoke_with_call_chain(task_args, invocation_chain) # :nodoc:
|
186
|
+
new_chain = InvocationChain.append(self, invocation_chain)
|
187
|
+
@lock.synchronize do
|
188
|
+
if application.options.trace
|
189
|
+
application.trace "** Invoke #{name} #{format_trace_flags}"
|
190
|
+
end
|
191
|
+
return if @already_invoked
|
192
|
+
@already_invoked = true
|
193
|
+
invoke_prerequisites(task_args, new_chain)
|
194
|
+
execute(task_args) if needed?
|
195
|
+
end
|
196
|
+
rescue Exception => ex
|
197
|
+
add_chain_to(ex, new_chain)
|
198
|
+
raise ex
|
199
|
+
end
|
200
|
+
protected :invoke_with_call_chain
|
201
|
+
|
202
|
+
def add_chain_to(exception, new_chain) # :nodoc:
|
203
|
+
exception.extend(InvocationExceptionMixin) unless
|
204
|
+
exception.respond_to?(:chain)
|
205
|
+
exception.chain = new_chain if exception.chain.nil?
|
206
|
+
end
|
207
|
+
private :add_chain_to
|
208
|
+
|
209
|
+
# Invoke all the prerequisites of a task.
|
210
|
+
def invoke_prerequisites(task_args, invocation_chain) # :nodoc:
|
211
|
+
if application.options.always_multitask
|
212
|
+
invoke_prerequisites_concurrently(task_args, invocation_chain)
|
213
|
+
else
|
214
|
+
prerequisite_tasks.each { |p|
|
215
|
+
prereq_args = task_args.new_scope(p.arg_names)
|
216
|
+
p.invoke_with_call_chain(prereq_args, invocation_chain)
|
217
|
+
}
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
# Invoke all the prerequisites of a task in parallel.
|
222
|
+
def invoke_prerequisites_concurrently(task_args, invocation_chain)# :nodoc:
|
223
|
+
futures = prerequisite_tasks.map do |p|
|
224
|
+
prereq_args = task_args.new_scope(p.arg_names)
|
225
|
+
application.thread_pool.future(p) do |r|
|
226
|
+
r.invoke_with_call_chain(prereq_args, invocation_chain)
|
227
|
+
end
|
228
|
+
end
|
229
|
+
futures.each(&:value)
|
230
|
+
end
|
231
|
+
|
232
|
+
# Format the trace flags for display.
|
233
|
+
def format_trace_flags
|
234
|
+
flags = []
|
235
|
+
flags << "first_time" unless @already_invoked
|
236
|
+
flags << "not_needed" unless needed?
|
237
|
+
flags.empty? ? "" : "(" + flags.join(", ") + ")"
|
238
|
+
end
|
239
|
+
private :format_trace_flags
|
240
|
+
|
241
|
+
# Execute the actions associated with this task.
|
242
|
+
def execute(args=nil)
|
243
|
+
args ||= EMPTY_TASK_ARGS
|
244
|
+
if application.options.dryrun
|
245
|
+
application.trace "** Execute (dry run) #{name}"
|
246
|
+
return
|
247
|
+
end
|
248
|
+
application.trace "** Execute #{name}" if application.options.trace
|
249
|
+
application.enhance_with_matching_rule(name) if @actions.empty?
|
250
|
+
@actions.each { |act| act.call(self, args) }
|
251
|
+
end
|
252
|
+
|
253
|
+
# Is this task needed?
|
254
|
+
def needed?
|
255
|
+
true
|
256
|
+
end
|
257
|
+
|
258
|
+
# Timestamp for this task. Basic tasks return the current time for their
|
259
|
+
# time stamp. Other tasks can be more sophisticated.
|
260
|
+
def timestamp
|
261
|
+
Time.now
|
262
|
+
end
|
263
|
+
|
264
|
+
# Add a description to the task. The description can consist of an option
|
265
|
+
# argument list (enclosed brackets) and an optional comment.
|
266
|
+
def add_description(description)
|
267
|
+
return unless description
|
268
|
+
comment = description.strip
|
269
|
+
add_comment(comment) if comment && ! comment.empty?
|
270
|
+
end
|
271
|
+
|
272
|
+
def comment=(comment) # :nodoc:
|
273
|
+
add_comment(comment)
|
274
|
+
end
|
275
|
+
|
276
|
+
def add_comment(comment) # :nodoc:
|
277
|
+
return if comment.nil?
|
278
|
+
@comments << comment unless @comments.include?(comment)
|
279
|
+
end
|
280
|
+
private :add_comment
|
281
|
+
|
282
|
+
# Full collection of comments. Multiple comments are separated by
|
283
|
+
# newlines.
|
284
|
+
def full_comment
|
285
|
+
transform_comments("\n")
|
286
|
+
end
|
287
|
+
|
288
|
+
# First line (or sentence) of all comments. Multiple comments are
|
289
|
+
# separated by a "/".
|
290
|
+
def comment
|
291
|
+
transform_comments(" / ") { |c| first_sentence(c) }
|
292
|
+
end
|
293
|
+
|
294
|
+
# Transform the list of comments as specified by the block and
|
295
|
+
# join with the separator.
|
296
|
+
def transform_comments(separator, &block)
|
297
|
+
if @comments.empty?
|
298
|
+
nil
|
299
|
+
else
|
300
|
+
block ||= lambda { |c| c }
|
301
|
+
@comments.map(&block).join(separator)
|
302
|
+
end
|
303
|
+
end
|
304
|
+
private :transform_comments
|
305
|
+
|
306
|
+
# Get the first sentence in a string. The sentence is terminated
|
307
|
+
# by the first period, exclamation mark, or the end of the line.
|
308
|
+
# Decimal points do not count as periods.
|
309
|
+
def first_sentence(string)
|
310
|
+
string.split(/(?<=\w)(\.|!)[ \t]|(\.$|!)|\n/).first
|
311
|
+
end
|
312
|
+
private :first_sentence
|
313
|
+
|
314
|
+
# Set the names of the arguments for this task. +args+ should be
|
315
|
+
# an array of symbols, one for each argument name.
|
316
|
+
def set_arg_names(args)
|
317
|
+
@arg_names = args.map(&:to_sym)
|
318
|
+
end
|
319
|
+
|
320
|
+
# Return a string describing the internal state of a task. Useful for
|
321
|
+
# debugging.
|
322
|
+
def investigation
|
323
|
+
result = "------------------------------\n"
|
324
|
+
result << "Investigating #{name}\n"
|
325
|
+
result << "class: #{self.class}\n"
|
326
|
+
result << "task needed: #{needed?}\n"
|
327
|
+
result << "timestamp: #{timestamp}\n"
|
328
|
+
result << "pre-requisites: \n"
|
329
|
+
prereqs = prerequisite_tasks
|
330
|
+
prereqs.sort! { |a, b| a.timestamp <=> b.timestamp }
|
331
|
+
prereqs.each do |p|
|
332
|
+
result << "--#{p.name} (#{p.timestamp})\n"
|
333
|
+
end
|
334
|
+
latest_prereq = prerequisite_tasks.map(&:timestamp).max
|
335
|
+
result << "latest-prerequisite time: #{latest_prereq}\n"
|
336
|
+
result << "................................\n\n"
|
337
|
+
return result
|
338
|
+
end
|
339
|
+
|
340
|
+
# ----------------------------------------------------------------
|
341
|
+
# Rake Module Methods
|
342
|
+
#
|
343
|
+
class << self
|
344
|
+
|
345
|
+
# Clear the task list. This cause rake to immediately forget all the
|
346
|
+
# tasks that have been assigned. (Normally used in the unit tests.)
|
347
|
+
def clear
|
348
|
+
Rake.application.clear
|
349
|
+
end
|
350
|
+
|
351
|
+
# List of all defined tasks.
|
352
|
+
def tasks
|
353
|
+
Rake.application.tasks
|
354
|
+
end
|
355
|
+
|
356
|
+
# Return a task with the given name. If the task is not currently
|
357
|
+
# known, try to synthesize one from the defined rules. If no rules are
|
358
|
+
# found, but an existing file matches the task name, assume it is a file
|
359
|
+
# task with no dependencies or actions.
|
360
|
+
def [](task_name)
|
361
|
+
Rake.application[task_name]
|
362
|
+
end
|
363
|
+
|
364
|
+
# TRUE if the task name is already defined.
|
365
|
+
def task_defined?(task_name)
|
366
|
+
Rake.application.lookup(task_name) != nil
|
367
|
+
end
|
368
|
+
|
369
|
+
# Define a task given +args+ and an option block. If a rule with the
|
370
|
+
# given name already exists, the prerequisites and actions are added to
|
371
|
+
# the existing task. Returns the defined task.
|
372
|
+
def define_task(*args, &block)
|
373
|
+
Rake.application.define_task(self, *args, &block)
|
374
|
+
end
|
375
|
+
|
376
|
+
# Define a rule for synthesizing tasks.
|
377
|
+
def create_rule(*args, &block)
|
378
|
+
Rake.application.create_rule(*args, &block)
|
379
|
+
end
|
380
|
+
|
381
|
+
# Apply the scope to the task name according to the rules for
|
382
|
+
# this kind of task. Generic tasks will accept the scope as
|
383
|
+
# part of the name.
|
384
|
+
def scope_name(scope, task_name)
|
385
|
+
scope.path_with_task_name(task_name)
|
386
|
+
end
|
387
|
+
|
388
|
+
end # class << Rake::Task
|
389
|
+
end # class Rake::Task
|
390
|
+
end
|