• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / tigerdata-app / bb6442c4-eb43-430c-9683-6ffb5848882a

21 Oct 2025 08:43PM UTC coverage: 87.325% (+0.4%) from 86.877%
bb6442c4-eb43-430c-9683-6ffb5848882a

Pull #2066

circleci

bess
Stop mediaflux when we stop everything else
Pull Request #2066: Stop mediaflux when we stop everything else

2625 of 3006 relevant lines covered (87.33%)

307.22 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/app/models/mediaflux/service_execute_request.rb
1
# frozen_string_literal: true
2
module Mediaflux
2✔
3
  class ServiceExecuteRequest < Request
2✔
4
    attr_reader :token, :service_name, :document
2✔
5

6
    # Constructor
7
    # @param session_token [String] the API token for the authenticated session
8
    # @param service_name  [String] Name of the service to run.
9
    #                               Can be any command like asset.namespace.list
10
    # @param token         [String] Optional User token for the person executing the command
11
    # @param document      [String] Optional xml document to pass on to the service.
12
    #                               Used to pass parameters to the command
13
    def initialize(session_token:, service_name:, token: nil, document: nil)
2✔
14
      super(session_token: session_token)
3✔
15
      @service_name = service_name
3✔
16
      @token = token
3✔
17
      @document = document
3✔
18
    end
19

20
    # Specifies the Mediaflux service to use when creating assets
21
    # @return [String]
22
    def self.service
2✔
23
      "service.execute"
6✔
24
    end
25

26
    private
2✔
27

28
      def build_http_request_body(name:)
2✔
29
        super do |xml|
6✔
30
          xml.args do
6✔
31
            xml.token token if token.present?
6✔
32
            xml.service name: service_name do
6✔
33
              xml << document
6✔
34
            end
35
          end
36
        end
37
      end
38
  end
39
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc