Sha256: e486bd2225b2eef657a648ff2afae0ab104a1eee2f801df5f67ddf119a1b24ed

Contents?: true

Size: 951 Bytes

Versions: 25

Compression:

Stored size: 951 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
          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

25 entries across 25 versions & 1 rubygems

Version Path
bolt-3.17.0 lib/bolt/config/transport/orch.rb
bolt-3.16.1 lib/bolt/config/transport/orch.rb
bolt-3.16.0 lib/bolt/config/transport/orch.rb
bolt-3.15.0 lib/bolt/config/transport/orch.rb
bolt-3.14.1 lib/bolt/config/transport/orch.rb
bolt-3.13.0 lib/bolt/config/transport/orch.rb
bolt-3.12.0 lib/bolt/config/transport/orch.rb
bolt-3.11.0 lib/bolt/config/transport/orch.rb
bolt-3.10.0 lib/bolt/config/transport/orch.rb
bolt-3.9.2 lib/bolt/config/transport/orch.rb
bolt-3.9.1 lib/bolt/config/transport/orch.rb
bolt-3.9.0 lib/bolt/config/transport/orch.rb
bolt-3.8.1 lib/bolt/config/transport/orch.rb
bolt-3.8.0 lib/bolt/config/transport/orch.rb
bolt-3.7.1 lib/bolt/config/transport/orch.rb
bolt-3.7.0 lib/bolt/config/transport/orch.rb
bolt-3.6.1 lib/bolt/config/transport/orch.rb
bolt-3.6.0 lib/bolt/config/transport/orch.rb
bolt-3.5.0 lib/bolt/config/transport/orch.rb
bolt-3.4.0 lib/bolt/config/transport/orch.rb