Sha256: 99b7cdf8038fe9a685101834c6df7fe8eaa7278dcb22c2d157683c8c89f86b49
Contents?: true
Size: 393 Bytes
Versions: 1
Compression:
Stored size: 393 Bytes
Contents
module Anisoptera class SyncEndpoint include Anisoptera::Endpoint def call(env) params = routing_params(env) job = Anisoptera::Commander.new( @config.base_path ) convert = @handler.call(job, params) result = `#{convert.command}` headers = update_headers(convert) [200, headers, [result]] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
anisoptera-0.0.2 | lib/anisoptera/sync_endpoint.rb |