mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-25 13:27:10 -07:00
Allow to pass parameters to Cucumber in Docker.
Also add some comments.
This commit is contained in:
parent
2afb22f6af
commit
15997dcba8
3 changed files with 40 additions and 6 deletions
|
@ -7,6 +7,15 @@ Given(/^SDKMAN! candidate list is up to date$/) do
|
|||
end
|
||||
|
||||
Given(/^candidate (\w+) is installed at version (\d+(?:\.\d+)*)$/) do |candidate, version|
|
||||
# TODO: Can we mock-install instead?
|
||||
# Something like
|
||||
#
|
||||
# mkdir -p ${SDKMAN_CANDIDATES_DIR}/${candidate}/{version}/bin \
|
||||
# && touch ${SDKMAN_CANDIDATES_DIR}/${candidate}/${version}/bin/${candidate} &&
|
||||
# ln -s ${SDKMAN_CANDIDATES_DIR}/${candidate}/current ${SDKMAN_CANDIDATES_DIR}/${candidate}/${version}
|
||||
#
|
||||
# should be quite enough to trick sdk as far as we need it to trick.
|
||||
# Or is it?
|
||||
run_bash_command("sdk install #{candidate} #{version}") unless installed?(candidate, version)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue