Skip to content

Instantly share code, notes, and snippets.

@stephaneerard
Created December 5, 2018 22:37
Show Gist options
  • Save stephaneerard/cafae3a1b81b3fa16f476f3cce2010d1 to your computer and use it in GitHub Desktop.
Save stephaneerard/cafae3a1b81b3fa16f476f3cce2010d1 to your computer and use it in GitHub Desktop.
jenkins_slaves_ips = {
00 => "192.168.54.5",
01 => "192.168.54.6",
02 => "192.168.54.7",
}
How to loop over this hash ?
jenkins_slaves_ips.each |nb|
puts "#{nb}"
end
=>
c:/code/v1/mvp0-level0/Vagrantfile:220: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '('
puts "#{nb}"
^
c:/code/v1/mvp0-level0/Vagrantfile:224: syntax error, unexpected keyword_end, expecting end-of-input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment