lib/space/action.rb in space-0.0.6 vs lib/space/action.rb in space-0.0.7

- old
+ new

@@ -28,11 +28,16 @@ def in_scope scope.each { |repo| yield repo } end + def in_repo(repo, &block) + puts "in #{repo.path}".ansi(:bold, :green) + Dir.chdir(repo.path, &block) + end + def system(cmd) - puts cmd + puts "#{cmd.ansi(:bold, :black)}\n" super end def confirm puts "--- hit any key to continue ---\n"