Skip to content

Commit

Permalink
tweaked help text, still not working
Browse files Browse the repository at this point in the history
  • Loading branch information
lachie committed Jun 17, 2008
1 parent bf44302 commit 0f36315
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
.DS_Store .DS_Store
*.log *.log
pkg
9 changes: 9 additions & 0 deletions Rakefile
Expand Up @@ -37,6 +37,15 @@ namespace :gem do
f.puts(appjour_gemspec.to_ruby) f.puts(appjour_gemspec.to_ruby)
end end
end end

desc "test spec in github cleanroom"
task :test do
require 'rubygems/specification'
data = File.read('appjour.gemspec')
spec = nil
Thread.new { spec = eval("$SAFE = 3\n#{data}") }.join
puts spec
end
end end
end end


Expand Down
13 changes: 6 additions & 7 deletions bin/appjour
@@ -1,13 +1,11 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby


$:.unshift File.dirname(__FILE__)+"/../lib" # $:.unshift File.dirname(__FILE__)+"/../lib"

require "rubygems" require "rubygems"
require "appjour" require "appjour"




# list = ARGV.delete("-l")
# publish = ARGV.delete("-p")
# open = ARGV.delete("-o")
help = ARGV.delete("-h") help = ARGV.delete("-h")




Expand All @@ -25,9 +23,10 @@ end


if help if help
puts <<-EOH puts <<-EOH
appjour -l look for apps appjour look for apps
appjour -p [NAME] open the app called appjour [NAME] open the app NAME
appjour -p [NAME] [PORT] publish your app appjour [NAME] [PORT] publish your app as NAME on PORT
appjour [PORT] publish your app as $USER on PORT
EOH EOH
elsif name && port elsif name && port
Expand Down

0 comments on commit 0f36315

Please sign in to comment.