Sha256: fac71d15a294162ac54380802febc8afefa14e166a81e8cd6e2b35d66e002820

Contents?: true

Size: 1.41 KB

Versions: 36

Compression:

Stored size: 1.41 KB

Contents

module HybridPlatformsConductor

  module CommonConfigDsl

    module Confluence

      # Initialize the DSL 
      def init_confluence
        # Confluence configuration (can be nil if none)
        # Hash<Symbol, Object> or nil. See #confluence_info to know details.
        @confluence = nil
      end

      # Register a Confluence server
      #
      # Parameters::
      # * *url* (String): URL to the Confluence server
      # * *inventory_report_page_id* (String or nil): Confluence page id used for inventory reports, or nil if none [default: nil]
      # * *tests_report_page_id* (String or nil): Confluence page id used for test reports, or nil if none [default: nil]
      def confluence(url:, inventory_report_page_id: nil, tests_report_page_id: nil)
        @confluence = {
          url: url,
          inventory_report_page_id: inventory_report_page_id,
          tests_report_page_id: tests_report_page_id
        }
      end

      # Return the Confluence information
      #
      # Result::
      # * Hash<Symbol, Object> or nil: The Confluence information, or nil if none
      #   * *url* (String): The Confluence URL.
      #   * *inventory_report_page_id* (String or nil): Confluence page id used for inventory reports, or nil if none.
      #   * *tests_report_page_id* (String or nil): Confluence page id used for test reports, or nil if none.
      def confluence_info
        @confluence
      end

    end

  end

end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.0.0 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.18.0 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.17.1 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.17.0 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.16.4 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.16.3 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.16.2 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.16.1 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.16.0 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.15.0 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.14.0 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.13.4 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.13.3 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.13.2 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.13.1 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.13.0 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.12.0 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.11.2 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.11.1 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-32.11.0 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb