Sha256: 9de01e77d3caab8316de0172658fdf43c1fa6526eb742ce54845f0040b061741

Contents?: true

Size: 288 Bytes

Versions: 3

Compression:

Stored size: 288 Bytes

Contents

require File.expand_path('../../spec_helper.rb', __FILE__)

class HelloMarsHandler
  include Buster::CommandHandler

  def execute(props)
    reply :hello_earth, 'name' => props['name'].upcase
  end
end

trap("TERM") { Buster.stop }

Buster.local_endpoint = 'ipc://mars.ipc'
Buster.start

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
buster-0.1.3 spec/test_endpoints/mars.rb
buster-0.1.2 spec/test_endpoints/mars.rb
buster-0.1.1 spec/test_endpoints/mars.rb