func PublishPactFileToBroker(pactFiles []string, pactBrokerURL string, pactBrokerUsername string, pactBrokerPassword string, pactVersion string, tags []string) {
	log.SetOutput(&logutils.LevelFilter{
		Levels:   []logutils.LogLevel{"DEBUG", "INFO", "WARN", "ERROR"},
		MinLevel: logutils.LogLevel("INFO"),
		Writer:   os.Stderr,
	})
	log.Printf("Publishing pact files %s to a broker (%s)...\n", pactFiles, pactBrokerURL)
	p := dsl.Publisher{}
	err := p.Publish(types.PublishRequest{
		PactURLs:        pactFiles,
		PactBroker:      pactBrokerURL,
		BrokerUsername:  pactBrokerUsername,
		BrokerPassword:  pactBrokerPassword,
		ConsumerVersion: pactVersion,
		Tags:            tags,
	})

	if err != nil {
		log.Fatalf("Unable to publish pact to a broker (%s):\n%+v\n", pactBrokerURL, err)
	}
}
// PublishPactFileToBroker publishes given Pact files to a given Pact broker.
PublishPactFileToBroker publishes given Pact files to a given Pact broker.
// PublishPactFileToBroker publishes given Pact files to a given Pact broker .
func PublishPactFileToBroker(pactFiles []string, pactBrokerURL string, pactBrokerUsername string, pactBrokerPassword string, pactVersion string, tags []string) {
	log.SetOutput(&logutils.LevelFilter{
		Levels:   []logutils.LogLevel{"DEBUG", "INFO", "WARN", "ERROR"},
		MinLevel: logutils.LogLevel("INFO"),
		Writer:   os.Stderr,
	})
	log.Printf("Publishing pact files %s to a broker (%s)...\n", pactFiles, pactBrokerURL)
	p := dsl.Publisher{}
	err := p.Publish(types.PublishRequest{
		PactURLs:        pactFiles,
		PactBroker:      pactBrokerURL,
		BrokerUsername:  pactBrokerUsername,
		BrokerPassword:  pactBrokerPassword,
		ConsumerVersion: pactVersion,
		Tags:            tags,
	})
	if err != nil {
		log.Fatalf("Unable to publish pact to a broker (%s):\n%+v\n", pactBrokerURL, err)
	}
}
func PublishPactFileToBroker ( pactFiles [ ] string , pactBrokerURL string , pactBrokerUsername string , pactBrokerPassword string , pactVersion string , tags [ ] string ) { log . SetOutput ( & logutils . LevelFilter { Levels : [ ] logutils . LogLevel { " " , " " , " " , " " } , MinLevel : logutils . LogLevel ( " " ) , Writer : os . Stderr , } ) log . Printf ( " \n " , pactFiles , pactBrokerURL ) p := dsl . Publisher { } err := p . Publish ( types . PublishRequest { PactURLs : pactFiles , PactBroker : pactBrokerURL , BrokerUsername : pactBrokerUsername , BrokerPassword : pactBrokerPassword , ConsumerVersion : pactVersion , Tags : tags , } ) if err != nil { log . Fatalf ( " \n \n " , pactBrokerURL , err ) } }
PublishPactFileToBroker publishes given Pact files to a given Pact broker.
PublishPactFileToBroker publishes given Pact files to a given Pact broker .