Sha256: c82515bcce76e586c7172120920ae430a4ac5dfb3195faca7fefc74c836e01cc

Contents?: true

Size: 328 Bytes

Versions: 2

Compression:

Stored size: 328 Bytes

Contents

unless defined? ADAPTOR_ROOT
  ADAPTOR_ROOT = File.expand_path(File.dirname(__FILE__) + '/..')
end
require 'drb'
require 'yaml'

config = YAML::load(File.open("#{ADAPTOR_ROOT}/config/mom.yml"))
mom_uri = "druby://#{config["mom"]["host"]}:#{config["mom"]["port"]}"

mom = DRbObject.new(nil, mom_uri)
mom.publish ARGV[1], ARGV[0]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
adaptation-0.0.1 dispatches/publish.rb
adaptation-0.0.2 dispatches/publish.rb