Sha256: 0ab6538493696ce02bf8857fba4878a61359f4e47be9983dc364dbc31233b1b0

Contents?: true

Size: 665 Bytes

Versions: 29

Compression:

Stored size: 665 Bytes

Contents

# frozen_string_literal: true

module Diffend
  # Module responsible for building local context
  module LocalContext
    class << self
      # Build diffend, host, packages, and platform specific information
      #
      # @param config [Diffend::Config]
      # @param definition [::Bundler::Definition] definition for your source
      #
      # @return [Hash] payload for diffend endpoint
      def call(config, definition)
        {
          'diffend' => Diffend.call(config),
          'host' => Host.call,
          'packages' => Packages.call(config.command, definition),
          'platform' => Platform.call
        }.freeze
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
diffend-0.2.54 lib/diffend/local_context.rb
diffend-monitor-0.2.54 lib/diffend/local_context.rb
diffend-0.2.53 lib/diffend/local_context.rb
diffend-monitor-0.2.51 lib/diffend/local_context.rb
diffend-0.2.51 lib/diffend/local_context.rb
diffend-monitor-0.2.50 lib/diffend/local_context.rb
diffend-0.2.50 lib/diffend/local_context.rb
diffend-monitor-0.2.49 lib/diffend/local_context.rb
diffend-0.2.49 lib/diffend/local_context.rb
diffend-monitor-0.2.48 lib/diffend/local_context.rb
diffend-0.2.48 lib/diffend/local_context.rb
diffend-0.2.47 lib/diffend/local_context.rb
diffend-monitor-0.2.46 lib/diffend/local_context.rb
diffend-0.2.46 lib/diffend/local_context.rb
diffend-0.2.45 lib/diffend/local_context.rb
diffend-monitor-0.2.44 lib/diffend/local_context.rb
diffend-0.2.44 lib/diffend/local_context.rb
diffend-monitor-0.2.43 lib/diffend/local_context.rb
diffend-0.2.43 lib/diffend/local_context.rb
diffend-monitor-0.2.42 lib/diffend/local_context.rb