Sha256: fdfea8b201e3da52415759fcf56819aba835b58e811547a5b8ff4c59bb192c8b

Contents?: true

Size: 987 Bytes

Versions: 17

Compression:

Stored size: 987 Bytes

Contents

# frozen_string_literal: true

require_relative '../../../bolt/error'
require_relative '../../../bolt/config/transport/base'

module Bolt
  class Config
    module Transport
      class Orch < Base
        OPTIONS = %w[
          cacert
          host
          job-poll-interval
          job-poll-timeout
          read-timeout
          service-url
          task-environment
          token-file
        ].freeze

        DEFAULTS = {
          "task-environment" => "production"
        }.freeze

        private def validate
          super

          if @config['cacert']
            @config['cacert'] = File.expand_path(@config['cacert'], @project)
            Bolt::Util.validate_file('cacert', @config['cacert'])
          end

          if @config['token-file']
            @config['token-file'] = File.expand_path(@config['token-file'], @project)
            Bolt::Util.validate_file('token-file', @config['token-file'])
          end
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bolt-3.29.0 lib/bolt/config/transport/orch.rb
bolt-3.28.0 lib/bolt/config/transport/orch.rb
bolt-3.27.4 lib/bolt/config/transport/orch.rb
bolt-3.27.2 lib/bolt/config/transport/orch.rb
bolt-3.27.1 lib/bolt/config/transport/orch.rb
bolt-3.26.2 lib/bolt/config/transport/orch.rb
bolt-3.26.1 lib/bolt/config/transport/orch.rb
bolt-3.25.0 lib/bolt/config/transport/orch.rb
bolt-3.24.0 lib/bolt/config/transport/orch.rb
bolt-3.23.1 lib/bolt/config/transport/orch.rb
bolt-3.23.0 lib/bolt/config/transport/orch.rb
bolt-3.22.1 lib/bolt/config/transport/orch.rb
bolt-3.22.0 lib/bolt/config/transport/orch.rb
bolt-3.21.0 lib/bolt/config/transport/orch.rb
bolt-3.20.0 lib/bolt/config/transport/orch.rb
bolt-3.19.0 lib/bolt/config/transport/orch.rb
bolt-3.18.0 lib/bolt/config/transport/orch.rb