Sha256: 2f837b0d7563a35f067e34aef349cda14b2f80496fd091572874811833ec648c

Contents?: true

Size: 558 Bytes

Versions: 1

Compression:

Stored size: 558 Bytes

Contents

require 'http.rb'

class BlogApp<HTTPApp
  requires :localTupleSpace
  def initialize(*ops)
    super
    u=url
    withAppFork(:directoryService) do
      loop do
        begin
          log "Trying to register blog"
          register(u,"blog")
          log "Registered blog"
          begin
          assert{lookup(u)=="blog"}
        rescue Object=>e
          log e,e.backtrace
        end
          break
        rescue NetApplication::NotInitialized=>e
          #pp e
          log "Failed to register blog",e
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
appswarm-0.0.1 apps/blog/blog.rb