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

pulibrary / tigerdata-app / 6913411a-a715-4c75-a2f2-ee2e3c99ede7

26 Jun 2025 07:51PM UTC coverage: 71.565% (-0.6%) from 72.117%
6913411a-a715-4c75-a2f2-ee2e3c99ede7

Pull #1572

circleci

hectorcorrea
Shamless green code that creates a project in Mediaflux via a rake task that calls a service defined in Mediaflux.
Pull Request #1572: Create a project in MediaFlux via the tigerdata.project.create service

4 of 18 branches covered (22.22%)

0 of 32 new or added lines in 1 file covered. (0.0%)

9 existing lines in 5 files now uncovered.

2995 of 4185 relevant lines covered (71.57%)

484.49 hits per line

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

97.06
/app/models/mediaflux/connection.rb
1
# frozen_string_literal: true
2
module Mediaflux
1✔
3
  class Connection
1✔
4
    # The host nome for the Mediaflux server
5
    # @return [String]
6
    def self.host
1✔
7
      if Flipflop.alternate_mediaflux?
7,798✔
8
        Rails.configuration.mediaflux["api_alternate_host"]
1✔
9
      else
10
        Rails.configuration.mediaflux["api_host"]
7,797✔
11
      end
12
    end
13

14
    # The host port for the Mediaflux server
15
    # @return [Integer]
16
    def self.port
1✔
17
      if Flipflop.alternate_mediaflux?
7,797✔
18
        Rails.configuration.mediaflux["api_alternate_port"].to_i
1✔
19
      else
20
        Rails.configuration.mediaflux["api_port"].to_i
7,796✔
21
      end
22
    end
23

24
    # The host transport for the Mediaflux server
25
    # @return [String]
26
    def self.transport
1✔
27
      if Flipflop.alternate_mediaflux?
7,793✔
28
        Rails.configuration.mediaflux["api_alternate_transport"]
1✔
29
      else
30
        Rails.configuration.mediaflux["api_transport"]
7,792✔
31
      end
32
    end
33

34
    def self.root_collection
1✔
35
      if Flipflop.alternate_mediaflux?
82✔
36
        Rails.configuration.mediaflux["api_alternate_root_collection"]
1✔
37
      else
38
        Rails.configuration.mediaflux["api_root_collection"]
81✔
39
      end
40
    end
41

42
    def self.root_collection_namespace
1✔
43
      if Flipflop.alternate_mediaflux?
410✔
44
        Rails.configuration.mediaflux["api_alternate_root_collection_namespace"]
1✔
45
      else
46
        Rails.configuration.mediaflux["api_root_collection_namespace"]
409✔
47
      end
48
    end
49

50
    def self.root_collection_name
1✔
51
      if Flipflop.alternate_mediaflux?
2✔
52
        Rails.configuration.mediaflux["api_alternate_root_collection_name"]
1✔
53
      else
54
        Rails.configuration.mediaflux["api_root_collection_name"]
1✔
55
      end
56
    end
57

58
    def self.root_namespace
1✔
59
      if Flipflop.alternate_mediaflux?
362✔
60
        Rails.configuration.mediaflux["api_alternate_root_ns"]
1✔
61
      else
62
        Rails.configuration.mediaflux["api_root_ns"]
361✔
63
      end
64
    end
65

66
    def self.hidden_root
1✔
67
      if Flipflop.alternate_mediaflux?
31✔
UNCOV
68
        Rails.configuration.mediaflux["api_alternate_hidden_root"]
×
69
      else
70
        Rails.configuration.mediaflux["api_hidden_root"]
31✔
71
      end
72
    end
73
  end
74
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