Sha256: 72a4cbccd85cbd8d7052c1bbc06dcf4e3643e2b3fea0ecd58155e63525dc26a0

Contents?: true

Size: 928 Bytes

Versions: 28

Compression:

Stored size: 928 Bytes

Contents

# frozen_string_literal: true

require 'bolt/error'
require 'bolt/config/transport/base'

module Bolt
  class Config
    module Transport
      class Orch < Base
        OPTIONS = %w[
          cacert
          host
          job-poll-interval
          job-poll-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

28 entries across 28 versions & 1 rubygems

Version Path
bolt-2.42.0 lib/bolt/config/transport/orch.rb
bolt-2.40.2 lib/bolt/config/transport/orch.rb
bolt-2.40.1 lib/bolt/config/transport/orch.rb
bolt-2.38.0 lib/bolt/config/transport/orch.rb
bolt-2.37.0 lib/bolt/config/transport/orch.rb
bolt-2.36.0 lib/bolt/config/transport/orch.rb
bolt-2.35.0 lib/bolt/config/transport/orch.rb
bolt-2.34.0 lib/bolt/config/transport/orch.rb
bolt-2.33.2 lib/bolt/config/transport/orch.rb
bolt-2.33.1 lib/bolt/config/transport/orch.rb
bolt-2.32.0 lib/bolt/config/transport/orch.rb
bolt-2.31.0 lib/bolt/config/transport/orch.rb
bolt-2.30.0 lib/bolt/config/transport/orch.rb
bolt-2.29.0 lib/bolt/config/transport/orch.rb
bolt-2.28.0 lib/bolt/config/transport/orch.rb
bolt-2.27.0 lib/bolt/config/transport/orch.rb
bolt-2.26.0 lib/bolt/config/transport/orch.rb
bolt-2.25.0 lib/bolt/config/transport/orch.rb
bolt-2.24.1 lib/bolt/config/transport/orch.rb
bolt-2.24.0 lib/bolt/config/transport/orch.rb