Skip to content
Browse files

removed 'show' cmd, instead 'gemjour list <name>'

  • Loading branch information...
1 parent f3ee474 commit cc4f6404e36c06fadd31d399e8c55bca7169853d @drnic drnic committed Jun 4, 2008
Showing with 6 additions and 6 deletions.
  1. +3 −2 README.rdoc
  2. +1 −3 bin/gemjour
  3. +2 −1 lib/gemjour.rb
View
5 README.rdoc
@@ -9,8 +9,9 @@ Server and install gems over Bonjour.
== Usage
- alice$ gemjour serve
- bob$ gemjour show alice
+ alice$ gemjour serve # publishes gems via bonjour
+ bob$ gemjour list # finds alice
+ bob$ gemjour list alice # shows alice's gems
alice$ gem install blah.gem; gitjour serve
bob$ gemjour install alice blah
View
4 bin/gemjour
@@ -11,9 +11,7 @@ begin
when "serve"
Gemjour.serve(*ARGV)
when "list"
- Gemjour.list
- when "show"
- Gemjour.show(*ARGV)
+ Gemjour.list(*ARGV)
when "install"
Gemjour.install(*ARGV)
else
View
3 lib/gemjour.rb
@@ -54,7 +54,8 @@ def self.find(name)
host
end
- def self.list
+ def self.list(name = nil)
+ return show(name) if name
hosts = []
waiting = Thread.current

0 comments on commit cc4f640

Please sign in to comment.
Something went wrong with that request. Please try again.