Sha256: 7304814d6da08ed51de18d57b5e30266126cb2e379e0b6302ad63391801f27a1

Contents?: true

Size: 1.49 KB

Versions: 31

Compression:

Stored size: 1.49 KB

Contents

module HybridPlatformsConductor

  module CommonConfigDsl

    # Add common Confluence config DSL to declare known Confluence installations
    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

31 entries across 31 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.9.5 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.9.4 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.9.2 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.9.1 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.9.0 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.8.4 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.8.3 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.8.2 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.8.1 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.8.0 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.7.4 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.7.3 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.7.2 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.7.1 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.7.0 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.6.0 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.5.1 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.5.0 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.4.0 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb
hybrid_platforms_conductor-33.3.0 lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb