Sha256: fc0f3aa68da178ef60024387e351832cc938cae214408316ed66f9ce851571ad

Contents?: true

Size: 1.59 KB

Versions: 8

Compression:

Stored size: 1.59 KB

Contents

require "pact_broker/client/cli/custom_thor"
require "pact_broker/client/hash_refinements"
require "thor/error"
require "pact_broker/client/cli/pact_commands"
require "pact_broker/client/cli/environment_commands"
require "pact_broker/client/cli/deployment_commands"
require "pact_broker/client/cli/pacticipant_commands"
require "pact_broker/client/cli/version_commands"
require "pact_broker/client/cli/webhook_commands"
require "pact_broker/client/cli/matrix_commands"
require "pact_broker/client/cli/branch_commands"
module PactBroker
  module Client
    module CLI
      class Broker < CustomThor
        include PactBroker::Client::CLI::PactCommands
        include PactBroker::Client::CLI::EnvironmentCommands
        include PactBroker::Client::CLI::DeploymentCommands
        include PactBroker::Client::CLI::MatrixCommands
        include PactBroker::Client::CLI::PacticipantCommands
        include PactBroker::Client::CLI::VersionCommands
        include PactBroker::Client::CLI::BranchCommands
        include PactBroker::Client::CLI::WebhookCommands

        ignored_and_hidden_potential_options_from_environment_variables
        desc "generate-uuid", "Generate a UUID for use when calling create-or-update-webhook"
        def generate_uuid
          require "securerandom"
          puts SecureRandom.uuid
        end

        ignored_and_hidden_potential_options_from_environment_variables
        desc "version", "Show the pact_broker-client gem version"
        def version
          require "pact_broker/client/version"
          $stdout.puts PactBroker::Client::VERSION
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pact_broker-client-1.77.0 lib/pact_broker/client/cli/broker.rb
pact_broker-client-1.76.2 lib/pact_broker/client/cli/broker.rb
pact_broker-client-1.76.1 lib/pact_broker/client/cli/broker.rb
pact_broker-client-1.76.0 lib/pact_broker/client/cli/broker.rb
pact_broker-client-1.75.4 lib/pact_broker/client/cli/broker.rb
pact_broker-client-1.75.3 lib/pact_broker/client/cli/broker.rb
pact_broker-client-1.75.1 lib/pact_broker/client/cli/broker.rb
pact_broker-client-1.75.0 lib/pact_broker/client/cli/broker.rb