Code |FrontPage |HiveTraits | ||
QuickTutorial
|svn checkout http://ruby-hive.googlecode.com/svn/trunk/hive |
require 'webrick'
include WEBrick def start_webrick(config = {}) server = HTTPServer.new(config) yield server if block_given? ['INT', 'TERM'].each do |signal| trap(signal) {server.shutdown} end server.start end start_webrick(:DocumentRoot => '/public/hive') |
|ruby wwwd.rb
[2007-06-16 13:48:26] INFO WEBrick 1.3.1 [2007-06-16 13:48:26] INFO ruby 1.8.4 (2005-12-24) [i386-freebsd6.1] [2007-06-16 13:48:26] INFO WEBrick::HTTPServer#start: pid=1386 port=80 |
$config['home'] = 'hivehome.com'
|
|ruby hivehome.rb -v |
|mkdir /hive |
|cd /hive |
|wget http://hivehome/hive/hiveclient.rb |
|cat > .hiverc
$base = 'http://hivehome/hive/' ^D |
| ruby hiveclient.rb -v |
!do $my:name $my:os $sys:pwd
|