Permalink
Browse files

Add search path to gem

Print banner by default
  • Loading branch information...
pjotrp committed May 1, 2012
1 parent 3dfa439 commit 078683ba6d43e4e37063cceccf1ada5cf6524061
Showing with 9 additions and 1 deletion.
  1. +9 −1 lib/bio-gem/templates/bin/bio-plugin
@@ -4,7 +4,15 @@
# Author:: <%= user_name %>
# Copyright:: <%= Time.now.year %>
- USAGE = "Describe <%= bin_name %>"
+USAGE = "Describe <%= bin_name %>"
+
+rootpath = File.dirname(File.dirname(__FILE__))
+$: << File.join(rootpath,'lib')
+
+VERSION = File.new(File.join(rootpath,'VERSION')).read.chomp
+
+# print banner
+print "<%= bin_name %> #{VERSION} by <%= user_name %> <%= Time.now.year %>\n"
if ARGV.size == 0
print USAGE

0 comments on commit 078683b

Please sign in to comment.