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

pulibrary / tigerdata-app / 6757a3c3-c9ee-46fd-8e2a-3dee91dffe8e

24 Sep 2024 01:45PM UTC coverage: 85.054% (-0.9%) from 85.954%
6757a3c3-c9ee-46fd-8e2a-3dee91dffe8e

push

circleci

web-flow
Execute a Mediaflux TCL script from Ruby (#933)

* First pass at installing a script in mediaflux that then we can call from Ruby. The example give the list of files for a given path.

* Added TCL script and Ruby classes to call it

* Rubocop nitpicking

* Added code to upload the script to Mediaflux (two MF requests and a rake task)

* Coveralls to ignore the project.rake

* Updated comment now that the TODO has been addressed

4 of 4 branches covered (100.0%)

0 of 110 new or added lines in 4 files covered. (0.0%)

2134 of 2509 relevant lines covered (85.05%)

297.56 hits per line

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

0.0
/app/models/mediaflux/script_make_executable_request.rb
1
# frozen_string_literal: true
NEW
2
module Mediaflux
×
NEW
3
  class ScriptMakeExecutableRequest < Request
×
4
    # Constructor
5
    # @param session_token [String] the API token for the authenticated session
6
    # @param path [String] full path to the script to mark as executable
NEW
7
    def initialize(session_token:, path:, session_user: nil)
×
NEW
8
      super(session_token: session_token, session_user: session_user)
×
NEW
9
      @path = path
×
NEW
10
    end
×
11

12
    # Specifies the Mediaflux service to use
13
    # @return [String]
NEW
14
    def self.service
×
NEW
15
      "asset.set.executable"
×
NEW
16
    end
×
17

NEW
18
    private
×
19

20
      # Mimics asset.set.executable :id path=/system/scripts/fileList.tcl :executable true
NEW
21
      def build_http_request_body(name:)
×
NEW
22
        super do |xml|
×
NEW
23
          xml.args do
×
NEW
24
            xml.id "path=#{@path}"
×
NEW
25
            xml.executable true
×
NEW
26
          end
×
NEW
27
        end
×
NEW
28
      end
×
NEW
29
  end
×
NEW
30
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

© 2026 Coveralls, Inc