Sha256: a5e2bac43fdfe07e7b6ee060d1d00742217c842c65cc46f9f9599a9fbc0214d4
Contents?: true
Size: 827 Bytes
Versions: 47
Compression:
Stored size: 827 Bytes
Contents
require 'pact_broker/client/base_command' require 'pact_broker/client/pacticipants/text_formatter' module PactBroker module Client module Pacticipants2 class List < PactBroker::Client::BaseCommand private attr_reader :environments_resource def do_call PactBroker::Client::CommandResult.new(true, result_message) end def environments_resource @environments_resource = environments_link.get! end def environments_link index_resource._link!('pb:pacticipants') end def result_message if json_output? environments_resource.response.raw_body else TextFormatter.call(environments_resource._embedded["pacticipants"]) end end end end end end
Version data entries
47 entries across 47 versions & 1 rubygems