-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TEST] packaging tests: clean up Vagrantfile #28173
[TEST] packaging tests: clean up Vagrantfile #28173
Conversation
* Consolidates provision steps so it's more clear which steps are applied to all boxes * Removes duplicate configuration that was being stomped * Ensure rsync, a dependency for platform steps, is installed on linux * Ruby style changes For elastic#26741
PROJECT_DIR = ENV['VAGRANT_PROJECT_DIR'] || Dir.pwd | ||
config.vm.synced_folder PROJECT_DIR, '/project' | ||
|
||
'ubuntu-1404'.tap do |box| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This way of using tap
is a ruby idiom for giving a constant a name within the scope of a block - avoids having to retype it or assign it to a variable that won't be used later
return 1 | ||
} | ||
ensure tar | ||
ensure curl | ||
ensure unzip | ||
ensure rsync |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rsync is used by the platform tests (which from my understanding we'd like to start using again) and is missing from some of the boxes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Consolidates provision steps so it's more clear which steps are applied to all boxes * Removes duplicate configuration that was being stomped * Ensure rsync, a dependency for platform steps, is installed on linux * Ruby style changes For #26741
This refactor is extracted out from #27682
applied to all boxes
For #26741