Sha256: 50faf30ecc519cde0d2756e2e02a2b6ed8343a7f2f6b5a306a2c2afade632ee4
Contents?: true
Size: 819 Bytes
Versions: 47
Compression:
Stored size: 819 Bytes
Contents
require 'pact_broker/client/environments/environment_command' require 'pact_broker/client/environments/text_formatter' module PactBroker module Client module Environments class ListEnvironments < PactBroker::Client::Environments::EnvironmentCommand 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 result_message if json_output? environments_resource.response.raw_body else PactBroker::Client::Environments::TextFormatter.call(environments_resource._embedded["environments"]) end end end end end end
Version data entries
47 entries across 47 versions & 1 rubygems