Skip to content

Instantly share code, notes, and snippets.

@srenatus
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save srenatus/9888226 to your computer and use it in GitHub Desktop.

Select an option

Save srenatus/9888226 to your computer and use it in GitHub Desktop.
how about that?
iter my_array do |it|
execute "git fetch -p" do
cwd path_for(it)
end
end
# ---> with my_array = %(foo bar), this should lead to
execute "foo: git fetch -p" do
command "git fetch -p"
cwd path_for(foo)
end
execute "bar: git fetch -p" do
command "git fetch -p"
cwd path_for(bar)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment