Sha256: 4e32ecce60c3d24aa1037b460ababcfb13c7f88517e4af09d9dab4cd87f0cac2
Contents?: true
Size: 1.05 KB
Versions: 25
Compression:
Stored size: 1.05 KB
Contents
require 'pact_broker/client/deployments/record_release' require "pact_broker/client/hash_refinements" module PactBroker module Client module Deployments class RecordDeployment < PactBroker::Client::Deployments::RecordRelease using PactBroker::Client::HashRefinements def initialize(params, options, pact_broker_client_options) super @application_instance = params.fetch(:application_instance) end private attr_reader :application_instance def action "deployment" end def action_relation_name "pb:record-deployment" end def record_action_request_body # for backwards compatibility with old broker { applicationInstance: application_instance, target: application_instance }.compact end def result_text_message if application_instance "#{super} (application instance #{application_instance})" else super end end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems