Permalink
Browse files

Renamed bananajour init to bananajour add

  • Loading branch information...
1 parent ad39670 commit 662b4eeec689e59213fabeef1aaefda8a425d1b5 @toolmantim committed Jun 12, 2009
Showing with 10 additions and 10 deletions.
  1. +3 −3 Readme.md
  2. +1 −1 bananajour.gemspec
  3. +4 −4 bin/bananajour
  4. +2 −2 lib/bananajour/commands.rb
  5. BIN screenshot.png
View
@@ -24,10 +24,10 @@ Start it up:
bananajour
-Initialize a new Bananajour repository:
+Go into an existing project and add it to bananajour:
cd ~/code/myproj
- bananajour init
+ bananajour add
Publish your codez:
@@ -36,7 +36,7 @@ Publish your codez:
Fire up [http://localhost:9331/](http://localhost:9331/) to check it out.
If somebody starts sharing a Bananajour repository with the same name on the
-network, it'll automatically show up in the network thanks to the wonder that is Bonjour.
+network it'll automatically show up in the network thanks to the wonder that is Bonjour.
For a list of all the commands:
View
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Tim Lucas"]
- s.date = %q{2009-06-12}
+ s.date = %q{2009-06-13}
s.default_executable = %q{bananajour}
s.description = %q{Local git repository hosting with a sexy web interface and bonjour discovery. It's like your own little adhoc, network-aware github!}
s.email = %q{t.lucas@toolmantim.com}
View
@@ -17,8 +17,8 @@ when nil
Bananajour.advertise!
Process.wait
-when "init", "add"
- repo = Bananajour.init!(ARGV[1] || File.expand_path("."))
+when "add", "init"
+ repo = Bananajour.add!(ARGV[1] || File.expand_path("."))
when "remove", "rm"
name = ARGV[1]
@@ -43,9 +43,9 @@ Usage: #{File.basename($0)} [<command>]
Commands:
none - Start the web, git and bonjour serving
- init [path] - Init a new repo
+ add [path] - Add an existing git repo to bananajour
remove <name> - Remove a repo
- clone <url> [path] - Clone a remote repo and init it as a new bananajour repo
+ clone <url> [path] - Clone a remote repo and add it to bananajour
help
version
HELP
@@ -26,7 +26,7 @@ def advertise!
fork { Bananajour::Bonjour::Advertiser.new.go! }
end
- def init!(dir, name = nil)
+ def add!(dir, name = nil)
dir = Fancypath(dir)
unless dir.join(".git").directory?
@@ -73,7 +73,7 @@ def clone!(url, clone_name)
abort clone_failure_message(url, repo.dirname)
else
puts clone_success_message(url, dir)
- init!(dir, dir)
+ add!(dir, dir)
end
end
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 662b4ee

Please sign in to comment.