Sha256: abfe27e645207d00e6b898f4b07ba4b8c46d9523c61207a6f3fb673de09c18c6

Contents?: true

Size: 391 Bytes

Versions: 4

Compression:

Stored size: 391 Bytes

Contents

module JsTestCore
  module Resources
    class SessionFinish < Resources::Resource
      property :session
      
      def post
        if session.associated_with_a_runner?
          Runner.finalize(session.id, rack_request['text'])
        else
          STDOUT.puts rack_request['text']
        end
        connection.send_head
        connection.send_body("")
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pivotal-screw-unit-0.4.0 vendor/js-test-core/lib/js_test_core/resources/session_finish.rb
pivotal-screw-unit-0.4.1 vendor/js-test-core/lib/js_test_core/resources/session_finish.rb
pivotal-screw-unit-0.4.2 vendor/js-test-core/lib/js_test_core/resources/session_finish.rb
pivotal-screw-unit-0.4.3 vendor/js-test-core/lib/js_test_core/resources/session_finish.rb