Skip to content

Instantly share code, notes, and snippets.

@richo
Created July 17, 2012 23:03
Show Gist options
  • Select an option

  • Save richo/3132734 to your computer and use it in GitHub Desktop.

Select an option

Save richo/3132734 to your computer and use it in GitHub Desktop.
met? {
Dir.exist? (cfn_metadata['babushka-deps']) &&
cd(cfn_metadata['babushka-deps']) do |dir|
[
shell "git fetch",
shell("git rev-list HEAD..origin/master").stdout.empty?,
!shell("git submodule status").stdout.grep /^-/
].all?
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment