lib/phper/cli.rb in phper-0.2.3 vs lib/phper/cli.rb in phper-0.2.4
- old
+ new
@@ -9,6 +9,12 @@
yield self if block_given?
end
def dispatch(cmd,cmd_argv)
@commands.send(cmd.sub(/:/,"_"))
end
+ def version
+ File.open(File.join(File.dirname(__FILE__) ,
+ "..","..","VERSION"),"r") { |file|
+ puts file.gets
+ }
+ end
end