Sha256: cc2c15eae2426e3f060dc7939995969ea7e2700b7dc91669a760d0622570bf38
Contents?: true
Size: 736 Bytes
Versions: 31
Compression:
Stored size: 736 Bytes
Contents
# frozen_string_literal: true require 'excon' require 'json' require 'concourse/sub_clients' module Concourse class Client def initialize(options) @options = options end def for_skymarshal Concourse::SubClients::SkymarshalClient.new( @options.merge(version: get_info[:version]) ) end # rubocop:disable Naming/AccessorMethodName def get_info JSON.parse( Excon.get(Concourse::Urls.info_url(@options[:url])) .body, symbolize_names: true ) end # rubocop:enable Naming/AccessorMethodName def ==(other) other.class == self.class && other.state == state end protected def state [@options] end end end
Version data entries
31 entries across 31 versions & 1 rubygems