Skip to content

Commit

Permalink
Download help page
Browse files Browse the repository at this point in the history
command with help and me or without any args
  • Loading branch information
naoty committed Aug 11, 2012
1 parent 3269458 commit 57889e2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/cuiabout
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby

require_relative '../lib/cuiabout'
Cuiabout::CLI.run(ARGV)
Cuiabout::CLI.run(*ARGV)
16 changes: 15 additions & 1 deletion lib/cuiabout.rb
@@ -1,5 +1,19 @@
require "cuiabout/version"

module Cuiabout
# Your code goes here...
class CLI

ROOT_PATH = 'http://cui-about.me'

def self.run *args
command = args.shift || 'help'
send(command, *args)
end

def self.help *args
system "curl #{ROOT_PATH}"
end
alias :me, :help

end
end

0 comments on commit 57889e2

Please sign in to comment.