Advertisement
Guest User

Untitled

a guest
Dec 5th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. jenkins_slaves_ips = {
  2. 00 => "192.168.54.5",
  3. 01 => "192.168.54.6",
  4. 02 => "192.168.54.7",
  5. }
  6.  
  7. How to loop over this hash ?
  8.  
  9. jenkins_slaves_ips.each |nb|
  10. puts "#{nb}"
  11. end
  12.  
  13.  
  14. =>
  15.  
  16. c:/code/v1/mvp0-level0/Vagrantfile:220: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '('
  17. puts "#{nb}"
  18. ^
  19. c:/code/v1/mvp0-level0/Vagrantfile:224: syntax error, unexpected keyword_end, expecting end-of-input
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement