Permalink
Browse files

Re-added the find_service method.

  • Loading branch information...
1 parent eff2c35 commit 8b8a612211e92aa38522d0c9fec47b26318c596e Ryan Bigg committed with lachlanhardy Jun 21, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/gitjour/application.rb
@@ -132,6 +132,10 @@ def find_services(name)
service_list.select { |s| /#{name}/.match(s.name) }
end
+ def find_service(name)
+ service_list.detect { |s| /#{name}/.match(s.name) }
+ end
+
def remote(name, label = nil, *rest)
service = find_service(name)

0 comments on commit 8b8a612

Please sign in to comment.